Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 5f6abbd

Browse files
committed
Revert "Don't assert if materializing before seeing any function bodies"
This reverts r251667 since it broke the bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251671 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent ff7c978 commit 5f6abbd

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3054,9 +3054,7 @@ std::error_code BitcodeReader::rememberAndSkipFunctionBodies() {
30543054

30553055
if (Stream.AtEndOfStream()) return error("Could not find function in stream");
30563056

3057-
if (!SeenFirstFunctionBody)
3058-
return error("Trying to materialize functions before seeing function blocks");
3059-
3057+
assert(SeenFirstFunctionBody);
30603058
// An old bitcode file with the symbol table at the end would have
30613059
// finished the parse greedily.
30623060
assert(SeenValueSymbolTable);
-548 Bytes
Binary file not shown.

test/Bitcode/invalid.test

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,3 @@ RUN: not llvm-dis -disable-output %p/Inputs/invalid-alias-type-mismatch.bc 2>&1
207207
RUN: FileCheck --check-prefix=ALIAS-TYPE-MISMATCH %s
208208

209209
ALIAS-TYPE-MISMATCH: Alias and aliasee types don't match
210-
211-
RUN: not llvm-dis -disable-output %p/Inputs/invalid-no-function-block.bc 2>&1 | \
212-
RUN: FileCheck --check-prefix=NO-FUNCTION-BLOCK %s
213-
214-
NO-FUNCTION-BLOCK: Trying to materialize functions before seeing function blocks

0 commit comments

Comments
 (0)