diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-13 03:15:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-13 03:15:25 +0000 |
commit | 914ed9d30e9abf829a62aa996b083b1e47c19ff6 (patch) | |
tree | c4b14f63594026cdb22db9e0927c6c7be7027743 /lib/Sema/Sema.cpp | |
parent | 40db2991d746a2901d6441cee261552a20a4a48a (diff) |
Teach ASTUnit to hold on to the Sema object and ASTConsumer that are
used when parsing (or re-parsing) a file. Also, when loading a
precompiled header into ASTUnit, create a Sema object that holds onto
semantic-analysis information.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 0d05b57b8d..778bf8c98a 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -172,7 +172,7 @@ Sema::~Sema() { // Detach from the external Sema source. if (ExternalSemaSource *ExternalSema - = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) + = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) ExternalSema->ForgetSema(); } |