From 2a2a496aacd53aeb02dbf654f7e7c59de301c8c2 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 30 Nov 2007 22:39:46 +0000 Subject: [PATCH] Fixed potential bug where CurWord is not zeroed out in JumpToBit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44469 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Bitcode/BitstreamReader.h | 1 + 1 file changed, 1 insertion(+) 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) {