summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2015-01-16 04:54:12 +0000
committerFilipe Cabecinhas <me@filcab.net>2015-01-16 04:54:12 +0000
commit3ca723c9e5e7188fe9b4935b5e2f089326d88641 (patch)
treee40744ac15a5e39e7dda2b719e59af1760889bdf /llvm/test/Bitcode
parent52f7c018d3435287d558e77de5859679aa3eb764 (diff)
downloadbcm5719-llvm-3ca723c9e5e7188fe9b4935b5e2f089326d88641.tar.gz
bcm5719-llvm-3ca723c9e5e7188fe9b4935b5e2f089326d88641.zip
Use report_fatal_error instead of llvm_unreachable, so we don't crash on user input
llvm-svn: 226248
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/Inputs/invalid-pr20485.bcbin0 -> 272 bytes
-rw-r--r--llvm/test/Bitcode/invalid.test1
2 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/Inputs/invalid-pr20485.bc b/llvm/test/Bitcode/Inputs/invalid-pr20485.bc
new file mode 100644
index 00000000000..b6211de88ff
--- /dev/null
+++ b/llvm/test/Bitcode/Inputs/invalid-pr20485.bc
Binary files differ
diff --git a/llvm/test/Bitcode/invalid.test b/llvm/test/Bitcode/invalid.test
new file mode 100644
index 00000000000..5f88da45f6a
--- /dev/null
+++ b/llvm/test/Bitcode/invalid.test
@@ -0,0 +1 @@
+RUN: not llvm-dis -disable-output %p/Inputs/invalid-pr20485.bc
OpenPOWER on IntegriCloud