diff options
author | John McCall <rjmccall@apple.com> | 2010-08-12 21:23:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-12 21:23:27 +0000 |
commit | e783d000b13283ca45fbf56e735404e86c9e990d (patch) | |
tree | ff40cfb454a1346e1f269438267bde951e54469a /lib/Sema/Sema.cpp | |
parent | 1ee17504a89547b327405ac3b2ede18eb4eb261a (diff) |
dgregor should write code that compiles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r-- | lib/Sema/Sema.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index a504ae69a2..21ad163617 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -18,7 +18,7 @@ #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/APFloat.h" #include "clang/Sema/ExternalSemaSource.h" -#include "clang/AST/ASTConsumer.h" +#include "clang/Sema/SemaConsumer.h" #include "clang/AST/ASTContext.h" #include "clang/AST/ASTDiagnostic.h" #include "clang/AST/DeclObjC.h" @@ -145,7 +145,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, ExpressionEvaluationContextRecord(PotentiallyEvaluated, 0)); // Tell the AST consumer about this Sema object. - Consumer.Initialize(this); + Consumer.Initialize(Context); // FIXME: Isn't this redundant with the initialization above? if (SemaConsumer *SC = dyn_cast<SemaConsumer>(&Consumer)) @@ -154,7 +154,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, // Tell the external Sema source about this Sema object. if (ExternalSemaSource *ExternalSema = dyn_cast_or_null<ExternalSemaSource>(Context.getExternalSource())) - ExternalSema->InitializeSema(S) + ExternalSema->InitializeSema(*this); } Sema::~Sema() { |