summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-19 00:19:18 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-19 00:19:18 +0000
commit5c26cda273fc6ef7614f47c81be62e442a06af38 (patch)
treebcb7f13e4ef03d7f347354abaebe4a2930b55458 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentf51ec1d12ba3a9b5f36d65e32a6ec22b2a051016 (diff)
downloadbcm5719-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.cpp2
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) {
OpenPOWER on IntegriCloud