aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend/ir-support-errors.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-16 22:31:42 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-16 22:31:42 +0000
commitc9b47f9ba822e69349dffe2b7c1c694a57e279fa (patch)
tree44685036233c0f7d1addbff4b4be6dc60cf4d903 /test/Frontend/ir-support-errors.ll
parent9ab511cde246a3a4e47b5b1c4aa2b861fcff08d5 (diff)
Escape % in diagnostic message when compiling LLVM IR.
% is a common character in IR so we'd crash on almost any malformed IR. The diagnostic formatter expects a formatting directive when it sees an unescaped %. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend/ir-support-errors.ll')
-rw-r--r--test/Frontend/ir-support-errors.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Frontend/ir-support-errors.ll b/test/Frontend/ir-support-errors.ll
index 98227d46f7..cb5913cd3a 100644
--- a/test/Frontend/ir-support-errors.ll
+++ b/test/Frontend/ir-support-errors.ll
@@ -3,6 +3,6 @@
target triple = "x86_64-apple-darwin10"
define i32 @f0() nounwind ssp {
-; CHECK: {{.*}}ir-support-errors.ll:7:16: error: expected value token
- ret i32 x
+; CHECK: {{.*}}ir-support-errors.ll:7:16: error: use of undefined value '%x'
+ ret i32 %x
}