summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-08-16 21:13:42 +0000
committerAnders Carlsson <andersca@mac.com>2009-08-16 21:13:42 +0000
commit81f0df9601b39ae24183a68b0b3944ac645f15ad (patch)
tree857010e12f3e8e18cd0294efc167401e87bd3d43 /clang/lib/CodeGen/CGExprScalar.cpp
parenta127f4e0104b5765d6e5341e82c48477087909bc (diff)
downloadbcm5719-llvm-81f0df9601b39ae24183a68b0b3944ac645f15ad.tar.gz
bcm5719-llvm-81f0df9601b39ae24183a68b0b3944ac645f15ad.zip
Improve handling of delete expressions.
llvm-svn: 79205
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 0b8cb8cb761..37d2995142a 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -293,6 +293,10 @@ public:
Value *VisitCXXNewExpr(const CXXNewExpr *E) {
return CGF.EmitCXXNewExpr(E);
}
+ Value *VisitCXXDeleteExpr(const CXXDeleteExpr *E) {
+ CGF.EmitCXXDeleteExpr(E);
+ return 0;
+ }
// Binary Operators.
Value *EmitMul(const BinOpInfo &Ops) {
OpenPOWER on IntegriCloud