summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-14 17:42:09 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-14 17:42:09 +0000
commit1172416d6515afb4f75a724a9a475cc7f3ac186b (patch)
treeef00e1c5bb350f7918ce4dd5a2bd50b3a429643b /llvm/lib/Bitcode
parent794793ec1c47dbf2d87a95ecb91f6f2132231657 (diff)
downloadbcm5719-llvm-1172416d6515afb4f75a724a9a475cc7f3ac186b.tar.gz
bcm5719-llvm-1172416d6515afb4f75a724a9a475cc7f3ac186b.zip
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. llvm-svn: 44124
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/Deserialize.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Reader/Deserialize.cpp b/llvm/lib/Bitcode/Reader/Deserialize.cpp
index 965ff708a2c..f7866f85266 100644
--- a/llvm/lib/Bitcode/Reader/Deserialize.cpp
+++ b/llvm/lib/Bitcode/Reader/Deserialize.cpp
@@ -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;
OpenPOWER on IntegriCloud