]> granicus.if.org Git - clang/commit
Escape % in diagnostic message when compiling LLVM IR.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Mar 2012 22:31:42 +0000 (22:31 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Mar 2012 22:31:42 +0000 (22:31 +0000)
commitc9b47f9ba822e69349dffe2b7c1c694a57e279fa
tree44685036233c0f7d1addbff4b4be6dc60cf4d903
parent9ab511cde246a3a4e47b5b1c4aa2b861fcff08d5
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
lib/CodeGen/CodeGenAction.cpp
test/Frontend/ir-support-errors.ll