diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-24 18:15:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-24 18:15:21 +0000 |
commit | f66d20da61af8672b2fe648283604408d42836ce (patch) | |
tree | 6d03735120191a0bcb373f9b7f00f42a2eb02f18 /lib/Bitcode/Reader/ReaderWrappers.cpp | |
parent | 084a844d6d3c4176a8137c7cf980c2b6c7731e34 (diff) |
ensure that every error return sets a message (and goes through Error, for
easy breakpointing).
Fix bugs reading constantexpr geps. We now can disassemble kc++ global
initializers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36398 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/ReaderWrappers.cpp')
-rw-r--r-- | lib/Bitcode/Reader/ReaderWrappers.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bitcode/Reader/ReaderWrappers.cpp b/lib/Bitcode/Reader/ReaderWrappers.cpp index 7f6a80953a..8bf81a2f83 100644 --- a/lib/Bitcode/Reader/ReaderWrappers.cpp +++ b/lib/Bitcode/Reader/ReaderWrappers.cpp @@ -51,6 +51,7 @@ bool BitcodeFileReader::Read(std::string *ErrMsg) { unsigned char *Buffer = reinterpret_cast<unsigned char*>(File.base()); if (!ParseBitcode(Buffer, File.size(), Filename)) return false; + assert(getErrorString() && "Didn't set an error string?"); if (ErrMsg) *ErrMsg = getErrorString(); return true; } |