summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-10-30 00:00:58 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-10-30 00:00:58 +0000
commit14323e02e64416c91a66d27c4abb160a86ccab9b (patch)
tree55277898549f9fd862d5b65f0da7dd90a16bfd2e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parente5839f3eaedd5fca1af0e36425cc04ba6e099d35 (diff)
downloadbcm5719-llvm-14323e02e64416c91a66d27c4abb160a86ccab9b.tar.gz
bcm5719-llvm-14323e02e64416c91a66d27c4abb160a86ccab9b.zip
Revert "Don't assert if materializing before seeing any function bodies"
This reverts r251667 since it broke the bots. llvm-svn: 251671
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index d2cbe9e85a4..e23f8176330 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -3054,9 +3054,7 @@ std::error_code BitcodeReader::rememberAndSkipFunctionBodies() {
if (Stream.AtEndOfStream()) return error("Could not find function in stream");
- if (!SeenFirstFunctionBody)
- return error("Trying to materialize functions before seeing function blocks");
-
+ assert(SeenFirstFunctionBody);
// An old bitcode file with the symbol table at the end would have
// finished the parse greedily.
assert(SeenValueSymbolTable);
OpenPOWER on IntegriCloud