aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commite3bcae90fbb05e7a403cf6feb90abca85ed5cb94 (patch)
tree2be810001f618648eb314daf6a9f400a8ee4564d /lib
parent828e7e4cb410a29f8633339ffbbae0ae3fa7987a (diff)
downloadexternal_llvm-e3bcae90fbb05e7a403cf6feb90abca85ed5cb94.zip
external_llvm-e3bcae90fbb05e7a403cf6feb90abca85ed5cb94.tar.gz
external_llvm-e3bcae90fbb05e7a403cf6feb90abca85ed5cb94.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Bitcode/Reader/Deserialize.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Bitcode/Reader/Deserialize.cpp b/lib/Bitcode/Reader/Deserialize.cpp
index 965ff70..f7866f8 100644
--- a/lib/Bitcode/Reader/Deserialize.cpp
+++ b/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;