]> granicus.if.org Git - clang/commitdiff
Fix PR13234 - crash when trying to report an unsupported ABI feature
authorTimur Iskhodzhanov <timurrrr@google.com>
Fri, 29 Jun 2012 01:14:21 +0000 (01:14 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Fri, 29 Jun 2012 01:14:21 +0000 (01:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159405 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCXXABI.cpp

index 32393bb8170d7a23e2d643e30094deba38981859..aba5d755d5c49e420f1d062c9b11c2617a1a568d 100644 (file)
@@ -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;