From 14323e02e64416c91a66d27c4abb160a86ccab9b Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Fri, 30 Oct 2015 00:00:58 +0000 Subject: Revert "Don't assert if materializing before seeing any function bodies" This reverts r251667 since it broke the bots. llvm-svn: 251671 --- llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/Bitcode') 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); -- cgit v1.2.3