diff options
-rw-r--r-- | lib/Bitcode/Reader/Deserialize.cpp | 4 |
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; |