Function bitcode index in Value Symbol Table and lazy reading support
[oota-llvm.git] / include / llvm / Bitcode / BitstreamReader.h
index 9201daf936d765dba2ac0afa82c06c3c4588c8d9..c0cf6cde887f12d032256a9ffb4472e8bd0dbfc0 100644 (file)
@@ -325,6 +325,8 @@ public:
 
     // If we run out of data, stop at the end of the stream.
     if (BytesRead == 0) {
+      CurWord = 0;
+      BitsInCurWord = 0;
       Size = NextChar;
       return;
     }
@@ -512,6 +514,6 @@ public:
   bool ReadBlockInfoBlock();
 };
 
-} // namespace llvm
+} // End llvm namespace
 
 #endif