summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
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
commit778b8b84b82171b830c76426412d1757dffcbd3a (patch)
tree3c6af8eae7f85603fa68b3c462752e24d3142574 /clang/test/Frontend
parent6e177d3155a183bf52b5eab8325f5c0326e93934 (diff)
downloadbcm5719-llvm-778b8b84b82171b830c76426412d1757dffcbd3a.tar.gz
bcm5719-llvm-778b8b84b82171b830c76426412d1757dffcbd3a.zip
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 %. llvm-svn: 152956
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/ir-support-errors.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Frontend/ir-support-errors.ll b/clang/test/Frontend/ir-support-errors.ll
index 98227d46f7a..cb5913cd3af 100644
--- a/clang/test/Frontend/ir-support-errors.ll
+++ b/clang/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
}
OpenPOWER on IntegriCloud