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 | 6fd55e06d3bc2c5e443f14ae7650d973064a47f0 (patch) | |
| tree | 4dbc3af302154a965ee5e34f2cbbb1644afdcb06 /clang/lib/Sema | |
| parent | d89e349f06ab96a9dafb14f718dd0fd1c75e3239 (diff) | |
| download | bcm5719-llvm-6fd55e06d3bc2c5e443f14ae7650d973064a47f0.tar.gz bcm5719-llvm-6fd55e06d3bc2c5e443f14ae7650d973064a47f0.zip | |
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.
llvm-svn: 111003
Diffstat (limited to 'clang/lib/Sema')
| -rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 0d05b57b8d7..778bf8c98a2 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/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(); } |

