From c9b47f9ba822e69349dffe2b7c1c694a57e279fa Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 16 Mar 2012 22:31:42 +0000 Subject: 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 --- test/Frontend/ir-support-errors.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/Frontend/ir-support-errors.ll') 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 } -- cgit v1.2.3-18-g5258