mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Use report_fatal_error instead of llvm_unreachable, so we don't crash on user input
llvm-svn: 226248
This commit is contained in:
parent
04316a019c
commit
47d5b20f32
@ -125,7 +125,7 @@ public:
|
||||
case Blob:
|
||||
return false;
|
||||
}
|
||||
llvm_unreachable("Invalid encoding");
|
||||
report_fatal_error("Invalid encoding");
|
||||
}
|
||||
|
||||
/// isChar6 - Return true if this character is legal in the Char6 encoding.
|
||||
|
BIN
test/Bitcode/Inputs/invalid-pr20485.bc
Normal file
BIN
test/Bitcode/Inputs/invalid-pr20485.bc
Normal file
Binary file not shown.
1
test/Bitcode/invalid.test
Normal file
1
test/Bitcode/invalid.test
Normal file
@ -0,0 +1 @@
|
||||
RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc
|
Loading…
Reference in New Issue
Block a user