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 | e8f0ba75a39b2fa2d34d14e8401ae96f43e1fc14 (patch) | |
tree | 2924560b282213cf27fbda803b0cd80c3c4ce40a /lib/FrontendTool | |
parent | 8fc32d272bd57b0a59f61c874cb7b56d9005e89e (diff) | |
download | clang-e8f0ba75a39b2fa2d34d14e8401ae96f43e1fc14.tar.gz |
getNumErrors() -> hasErrorOccurred()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/FrontendTool')
-rw-r--r-- | lib/FrontendTool/ExecuteCompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 63c6287807..861117fb30 100644 --- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/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) { |