forked from OSchip/llvm-project
Fix PR13234 - crash when trying to report an unsupported ABI feature
llvm-svn: 159405
This commit is contained in:
parent
98c3cfc3b9
commit
099ec01569
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue