mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use report_fatal_error instead of llvm_unreachable, so we don't crash on user input
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
92cd0ca3b2
commit
293d3deea3
@ -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