Removed debug #define that was accidentally checked in while debugging
authorTed Kremenek <kremenek@apple.com>
Wed, 14 Nov 2007 17:42:09 +0000 (17:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 14 Nov 2007 17:42:09 +0000 (17:42 +0000)
the deserializer.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44124 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/Deserialize.cpp

index 965ff708a2c99393c5e43923f0ed1b9431f0265a..f7866f85266b5dd999ff2c5bc4143ec990377b73 100644 (file)
@@ -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 @@ bool Deserializer::JumpTo(const Location& Loc) {
 //  AdvanceStream();
   
 //  assert (AbbrevNo == bitc::ENTER_SUBBLOCK);
-  assert (!BlockStack.empty());
+  assert (!BlockStack.empty() || AtEnd());
     
   uint64_t LastBPos = StreamStart.BitNo;