From: Timur Iskhodzhanov Date: Fri, 29 Jun 2012 01:14:21 +0000 (+0000) Subject: Fix PR13234 - crash when trying to report an unsupported ABI feature X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c56b552ff209f9b5ccd81c078dbbadb948eb711e;p=clang Fix PR13234 - crash when trying to report an unsupported ABI feature git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159405 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCXXABI.cpp b/lib/CodeGen/CGCXXABI.cpp index 32393bb817..aba5d755d5 100644 --- a/lib/CodeGen/CGCXXABI.cpp +++ b/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;