summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-25 18:17:45 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-25 18:17:45 +0000
commitb412e174db3846ec5aa83ecb8ead7fb54829237c (patch)
treec539a513916e5d7fb983ef42304a1386fe1fbb32 /clang/lib/Sema/Sema.cpp
parent5b11d49a7c2ea35903004198dd5570afe6ab0529 (diff)
downloadbcm5719-llvm-b412e174db3846ec5aa83ecb8ead7fb54829237c.tar.gz
bcm5719-llvm-b412e174db3846ec5aa83ecb8ead7fb54829237c.zip
Remove the vast majority of the Destroy methods from the AST library,
since we aren't going to be calling them ever. llvm-svn: 109377
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 33a111f395c..815eba051f7 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -205,10 +205,8 @@ ImplicitCastExpr::ResultCategory Sema::CastCategory(Expr *E) {
}
void Sema::DeleteExpr(ExprTy *E) {
- if (E) static_cast<Expr*>(E)->Destroy(Context);
}
void Sema::DeleteStmt(StmtTy *S) {
- if (S) static_cast<Stmt*>(S)->Destroy(Context);
}
/// ActOnEndOfTranslationUnit - This is called at the very end of the
OpenPOWER on IntegriCloud