diff options
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 7f6a809..8bf81a2 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; } |