[llvm-commits] [llvm] r44124 - /llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp

Ted Kremenek kremenek at apple.com
Wed Nov 14 09:42:10 PST 2007


Author: kremenek
Date: Wed Nov 14 11:42:09 2007
New Revision: 44124

URL: http://llvm.org/viewvc/llvm-project?rev=44124&view=rev
Log:
Removed debug #define that was accidentally checked in while debugging
the deserializer.

Fixed assertion when "stream jumping" in the deserializer to properly function
when we have reached the end of the stream.

Modified:
    llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp

Modified: llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp?rev=44124&r1=44123&r2=44124&view=diff

==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/Deserialize.cpp Wed Nov 14 11:42:09 2007
@@ -13,8 +13,6 @@
 
 #include "llvm/Bitcode/Deserialize.h"
 
-#define DEBUG_BACKPATCH
-
 #ifdef DEBUG_BACKPATCH
 #include "llvm/Support/Streams.h"
 #endif
@@ -170,7 +168,7 @@
 //  AdvanceStream();
   
 //  assert (AbbrevNo == bitc::ENTER_SUBBLOCK);
-  assert (!BlockStack.empty());
+  assert (!BlockStack.empty() || AtEnd());
     
   uint64_t LastBPos = StreamStart.BitNo;
   





More information about the llvm-commits mailing list