From: Ted Kremenek Date: Fri, 30 Nov 2007 22:39:46 +0000 (+0000) Subject: Fixed potential bug where CurWord is not zeroed out in JumpToBit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2a2a496aacd53aeb02dbf654f7e7c59de301c8c2;p=oota-llvm.git 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 --- 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) {