Fix bogus diagnostic format string.

llvm-svn: 96978
This commit is contained in:
Daniel Dunbar 2010-02-23 20:23:45 +00:00
parent 3cc6673fd0
commit 253dbad1c9
3 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ def note_fixit_main_file_unchanged : Note<
def warn_fixit_no_changes : Note<
"FIX-IT detected errors it could not fix; no output will be generated">;
def err_fe_clang : Error<"error invoking%s: %s">, DefaultFatal;
def err_fe_invoking : Error<"error invoking%0: %1">, DefaultFatal;
// PCH reader
def err_relocatable_without_without_isysroot : Error<

View File

@ -1103,7 +1103,7 @@ clang_createTranslationUnitFromSourceFile(CXIndex CIdx,
AllArgs += *I;
}
Diags->Report(diag::err_fe_clang) << AllArgs << ErrMsg;
Diags->Report(diag::err_fe_invoking) << AllArgs << ErrMsg;
}
ASTUnit *ATU = ASTUnit::LoadFromPCHFile(astTmpFile, *Diags,

View File

@ -330,7 +330,7 @@ CXCodeCompleteResults *clang_codeComplete(CXIndex CIdx,
AllArgs += *I;
}
Diags->Report(diag::err_fe_clang) << AllArgs << ErrMsg;
Diags->Report(diag::err_fe_invoking) << AllArgs << ErrMsg;
}
// Parse the resulting source file to find code-completion results.