[llvm-commits] [llvm] r44469 - /llvm/trunk/include/llvm/Bitcode/BitstreamReader.h

Ted Kremenek kremenek at apple.com
Fri Nov 30 14:39:47 PST 2007


Author: kremenek
Date: Fri Nov 30 16:39:46 2007
New Revision: 44469

URL: http://llvm.org/viewvc/llvm-project?rev=44469&view=rev
Log:
Fixed potential bug where CurWord is not zeroed out in JumpToBit.

Modified:
    llvm/trunk/include/llvm/Bitcode/BitstreamReader.h

Modified: llvm/trunk/include/llvm/Bitcode/BitstreamReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/BitstreamReader.h?rev=44469&r1=44468&r2=44469&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Bitcode/BitstreamReader.h (original)
+++ llvm/trunk/include/llvm/Bitcode/BitstreamReader.h Fri Nov 30 16:39:46 2007
@@ -122,6 +122,7 @@
     // Move the cursor to the right word.
     NextChar = FirstChar+ByteNo;
     BitsInCurWord = 0;
+    CurWord = 0;
     
     // Skip over any bits that are already consumed.
     if (WordBitNo) {





More information about the llvm-commits mailing list