summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/pr18704.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-25 01:10:03 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-25 01:10:03 +0000
commita6b8895442db0d5a80d1adfc6efd7475870fe17f (patch)
tree281f16ad43a5fd3ad81059d5ba00e0843506a12d /llvm/test/Bitcode/pr18704.ll
parentb5b5efd2d19839d2810ce4404d7ed717da2beecb (diff)
downloadbcm5719-llvm-a6b8895442db0d5a80d1adfc6efd7475870fe17f.tar.gz
bcm5719-llvm-a6b8895442db0d5a80d1adfc6efd7475870fe17f.zip
llvm-dis: Stop crashing when dropping debug info
Since r199356, we've printed a warning when dropping debug info. r225562 started crashing on that, since it registered a diagnostic handler that only expected errors. This fixes the handler to expect other severities. As a side effect, it now prints "error: " at the start of error messages, similar to `llvm-as`. There was a testcase for r199356, but it only really checked the assembler. Move `test/Bitcode/drop-debug-info.ll` to `test/Assembler`, and introduce `test/Bitcode/drop-debug-info.3.5.ll` (and companion `.bc`) to test the bitcode reader. Note: tools/gold/gold-plugin.cpp has an equivalent bug, but I'm not sure what the best fix is there. I'll file a PR. llvm-svn: 230416
Diffstat (limited to 'llvm/test/Bitcode/pr18704.ll')
-rw-r--r--llvm/test/Bitcode/pr18704.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Bitcode/pr18704.ll b/llvm/test/Bitcode/pr18704.ll
index f05fe53259f..e57ce3cec4c 100644
--- a/llvm/test/Bitcode/pr18704.ll
+++ b/llvm/test/Bitcode/pr18704.ll
@@ -1,6 +1,6 @@
; RUN: not llvm-dis < %s.bc 2>&1 | FileCheck %s
-; CHECK: llvm-dis{{(\.EXE|\.exe)?}}: Never resolved value found in function
+; CHECK: llvm-dis{{(\.EXE|\.exe)?}}: error: Never resolved value found in function
; pr18704.ll.bc has an instruction referring to invalid type.
; The test checks that LLVM reports the error and doesn't access freed memory
OpenPOWER on IntegriCloud