summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-24 08:50:51 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-24 08:50:51 +0000
commitcc14d1fd23bb1a4f621f58e6f815b44c84319734 (patch)
treefdf060da79f3fdf1eacb4e86ec10312dceb90005 /clang/lib/Sema/SemaExprCXX.cpp
parentc62f704576f733e69065056f7418125f85355f92 (diff)
downloadbcm5719-llvm-cc14d1fd23bb1a4f621f58e6f815b44c84319734.tar.gz
bcm5719-llvm-cc14d1fd23bb1a4f621f58e6f815b44c84319734.zip
More header elimination. The goal of all this is to allow Parser to
#include Sema.h while keeping all the AST declarations opaque. That may not be reasonably attainable, though. llvm-svn: 111907
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 4f7e669c8da..0e53a47b185 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -1295,7 +1295,7 @@ void Sema::DeclareGlobalAllocationFunction(DeclarationName Name,
// FIXME: Also add this declaration to the IdentifierResolver, but
// make sure it is at the end of the chain to coincide with the
// global scope.
- ((DeclContext *)TUScope->getEntity())->addDecl(Alloc);
+ Context.getTranslationUnitDecl()->addDecl(Alloc);
}
bool Sema::FindDeallocationFunction(SourceLocation StartLoc, CXXRecordDecl *RD,
OpenPOWER on IntegriCloud