Index: lib/Bitcode/NaCl/Reader/NaClBitstreamReader.cpp |
diff --git a/lib/Bitcode/NaCl/Reader/NaClBitstreamReader.cpp b/lib/Bitcode/NaCl/Reader/NaClBitstreamReader.cpp |
index 677539071b7c066b9b7ab48ba1df2bf5bb487f9b..0752400e5a1c1a8b9861fc674359510be9444687 100644 |
--- a/lib/Bitcode/NaCl/Reader/NaClBitstreamReader.cpp |
+++ b/lib/Bitcode/NaCl/Reader/NaClBitstreamReader.cpp |
@@ -71,13 +71,14 @@ bool NaClBitstreamCursor::EnterSubBlock(unsigned BlockID, unsigned *NumWordsP) { |
} |
// Get the codesize of this block. |
- CurCodeSize = ReadVBR(naclbitc::CodeLenWidth); |
+ CurCodeSize.IsFixed = ReadBool(); |
Karl
2013/05/20 22:59:20
Fixed to always set field IsFixed to true.
|
+ CurCodeSize.NumBits = ReadVBR(naclbitc::CodeLenWidth); |
SkipToFourByteBoundary(); |
unsigned NumWords = Read(naclbitc::BlockSizeWidth); |
if (NumWordsP) *NumWordsP = NumWords; |
// Validate that this block is sane. |
- if (CurCodeSize == 0 || AtEndOfStream()) |
+ if (CurCodeSize.NumBits == 0 || AtEndOfStream()) |
return true; |
return false; |