Fix PR13234 - crash when trying to report an unsupported ABI feature

llvm-svn: 159405
This commit is contained in:
Timur Iskhodzhanov 2012-06-29 01:14:21 +00:00
parent 98c3cfc3b9
commit 099ec01569
1 changed files with 1 additions and 1 deletions

View 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;