summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2012-06-29 01:14:21 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2012-06-29 01:14:21 +0000
commit099ec015692a4bc9860b2a513742b3b9fa9e76b6 (patch)
tree2010fda88c8c1f69dd8f18d83907f9955fd45a9a /clang/lib/CodeGen
parent98c3cfc3b95021af4281411aa3ceadf1854491ad (diff)
downloadbcm5719-llvm-099ec015692a4bc9860b2a513742b3b9fa9e76b6.tar.gz
bcm5719-llvm-099ec015692a4bc9860b2a513742b3b9fa9e76b6.zip
Fix PR13234 - crash when trying to report an unsupported ABI feature
llvm-svn: 159405
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCXXABI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCXXABI.cpp b/clang/lib/CodeGen/CGCXXABI.cpp
index 32393bb8170..aba5d755d5c 100644
--- a/clang/lib/CodeGen/CGCXXABI.cpp
+++ b/clang/lib/CodeGen/CGCXXABI.cpp
@@ -23,7 +23,7 @@ static void ErrorUnsupportedABI(CodeGenFunction &CGF,
StringRef S) {
DiagnosticsEngine &Diags = CGF.CGM.getDiags();
unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
- "cannot yet compile %1 in this ABI");
+ "cannot yet compile %0 in this ABI");
Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()),
DiagID)
<< S;
OpenPOWER on IntegriCloud