Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit c822983

Browse files
committed
Fix compiler error for type of NumAbbrevOps.
Fix is in file lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp BUG=None [email protected] Review URL: https://codereview.chromium.org/1164803003
1 parent 9ef1f40 commit c822983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,15 +509,15 @@ NaClBitCodeAbbrev *WriteState::buildAbbrev(
509509
// Note: Recover by removing abbreviation.
510510
NaClBitCodeAbbrev *Abbrev = new NaClBitCodeAbbrev();
511511
size_t Index = 0;
512-
size_t NumAbbrevOps;
512+
uint64_t NumAbbrevOps;
513513
if (!nextAbbrevValue(NumAbbrevOps, Record, Index))
514514
return deleteAbbrev(Abbrev);
515515
if (NumAbbrevOps == 0) {
516516
RecoverableError() << "Abbreviation must contain at least one operator: "
517517
<< Record << "\n";
518518
return deleteAbbrev(Abbrev);
519519
}
520-
for (size_t Count = 0; Count < NumAbbrevOps; ++Count) {
520+
for (uint64_t Count = 0; Count < NumAbbrevOps; ++Count) {
521521
uint64_t IsLiteral;
522522
if (!nextAbbrevValue(IsLiteral, Record, Index))
523523
return deleteAbbrev(Abbrev);

0 commit comments

Comments
 (0)