diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-19 00:19:18 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-19 00:19:18 +0000 |
commit | 5c26cda273fc6ef7614f47c81be62e442a06af38 (patch) | |
tree | bcb7f13e4ef03d7f347354abaebe4a2930b55458 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | f51ec1d12ba3a9b5f36d65e32a6ec22b2a051016 (diff) | |
download | bcm5719-llvm-5c26cda273fc6ef7614f47c81be62e442a06af38.tar.gz bcm5719-llvm-5c26cda273fc6ef7614f47c81be62e442a06af38.zip |
getNumErrors() -> hasErrorOccurred()
llvm-svn: 119765
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
-rw-r--r-- | clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 63c62878076..861117fb30a 100644 --- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -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) { |