diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 18b1979cb5e..d06b46604ba 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -122,6 +122,7 @@ public: // Move the cursor to the right word. NextChar = FirstChar+ByteNo; BitsInCurWord = 0; + CurWord = 0; // Skip over any bits that are already consumed. if (WordBitNo) {