forked from OSchip/llvm-project
parent
f51ec1d12b
commit
5c26cda273
|
@ -141,7 +141,7 @@ bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) {
|
|||
|
||||
// If there were errors in processing arguments, don't do anything else.
|
||||
bool Success = false;
|
||||
if (!Clang->getDiagnostics().getNumErrors()) {
|
||||
if (!Clang->getDiagnostics().hasErrorOccurred()) {
|
||||
// Create and execute the frontend action.
|
||||
llvm::OwningPtr<FrontendAction> Act(CreateFrontendAction(*Clang));
|
||||
if (Act) {
|
||||
|
|
|
@ -368,7 +368,7 @@ int cc1as_main(const char **ArgBegin, const char **ArgEnd,
|
|||
|
||||
// Execute the invocation, unless there were parsing errors.
|
||||
bool Success = false;
|
||||
if (!Diags.getNumErrors())
|
||||
if (!Diags.hasErrorOccurred())
|
||||
Success = ExecuteAssembler(Asm, Diags);
|
||||
|
||||
// If any timers were active but haven't been destroyed yet, print their
|
||||
|
|
Loading…
Reference in New Issue