1
0
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:
Filipe Cabecinhas 2015-01-16 04:54:12 +00:00
parent 04316a019c
commit 47d5b20f32
3 changed files with 2 additions and 1 deletions

View File

@ -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.

Binary file not shown.

View File

@ -0,0 +1 @@
RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc