summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-02-09 18:47:31 +0000
committerDouglas Gregor <dgregor@apple.com>2011-02-09 18:47:31 +0000
commit1388a89999022385b2e9145bf3748c56e84ace87 (patch)
treed939fb7a34c55781cb8c4bfc2c5986180e54d0a5 /clang/lib/Frontend
parentd5c17bb863035c016db2efb74512ccc83561f264 (diff)
downloadbcm5719-llvm-1388a89999022385b2e9145bf3748c56e84ace87.tar.gz
bcm5719-llvm-1388a89999022385b2e9145bf3748c56e84ace87.zip
Finish up the diagnostic client before we've torn down the ASTReader,
since the diagnostic client might poke at source locations that have not yet been deserialized. llvm-svn: 125204
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index af23923002d..e3d8b859419 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -290,6 +290,9 @@ void FrontendAction::Execute() {
void FrontendAction::EndSourceFile() {
CompilerInstance &CI = getCompilerInstance();
+ // Inform the diagnostic client we are done with this source file.
+ CI.getDiagnosticClient().EndSourceFile();
+
// Finalize the action.
EndSourceFileAction();
@@ -328,9 +331,6 @@ void FrontendAction::EndSourceFile() {
// an error.
CI.clearOutputFiles(/*EraseFiles=*/CI.getDiagnostics().hasErrorOccurred());
- // Inform the diagnostic client we are done with this source file.
- CI.getDiagnosticClient().EndSourceFile();
-
if (isCurrentFileAST()) {
CI.takeSema();
CI.takeASTContext();
OpenPOWER on IntegriCloud