Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Unified Diff: lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp

Issue 1164803003: Fix compiler error for type of NumAbbrevOps. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp
diff --git a/lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp b/lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp
index bb2261c80f786ae96f1bdd8550fe6205ee421c91..4cd8061ae9cadeb98f6530f3eb6e44609174d43e 100644
--- a/lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp
+++ b/lib/Bitcode/NaCl/TestUtils/NaClBitcodeMungeWriter.cpp
@@ -509,7 +509,7 @@ NaClBitCodeAbbrev *WriteState::buildAbbrev(
// Note: Recover by removing abbreviation.
NaClBitCodeAbbrev *Abbrev = new NaClBitCodeAbbrev();
size_t Index = 0;
- size_t NumAbbrevOps;
+ uint64_t NumAbbrevOps;
if (!nextAbbrevValue(NumAbbrevOps, Record, Index))
return deleteAbbrev(Abbrev);
if (NumAbbrevOps == 0) {
@@ -517,7 +517,7 @@ NaClBitCodeAbbrev *WriteState::buildAbbrev(
<< Record << "\n";
return deleteAbbrev(Abbrev);
}
- for (size_t Count = 0; Count < NumAbbrevOps; ++Count) {
+ for (uint64_t Count = 0; Count < NumAbbrevOps; ++Count) {
uint64_t IsLiteral;
if (!nextAbbrevValue(IsLiteral, Record, Index))
return deleteAbbrev(Abbrev);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698