summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprCXX.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-08-25 20:40:09 +0000
committerJohn McCall <rjmccall@apple.com>2011-08-25 20:40:09 +0000
commit8d6fc9583de6627e4ae5fd7a93e2158516faeba4 (patch)
treec72068eed5d1cf013e29a5fde288fafee00a2977 /clang/lib/CodeGen/CGExprCXX.cpp
parent7aecbc7661943f398a098b551bfe97560299a771 (diff)
downloadbcm5719-llvm-8d6fc9583de6627e4ae5fd7a93e2158516faeba4.tar.gz
bcm5719-llvm-8d6fc9583de6627e4ae5fd7a93e2158516faeba4.zip
Use stronger typing for the flags on AggValueSlot and require
creators to tell us whether something needs GC barriers. No functionality change. llvm-svn: 138581
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprCXX.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index 738aac2595e..cdab82eaab6 100644
--- a/clang/lib/CodeGen/CGExprCXX.cpp
+++ b/clang/lib/CodeGen/CGExprCXX.cpp
@@ -703,7 +703,9 @@ static void StoreAnyExprIntoOneUnit(CodeGenFunction &CGF, const CXXNewExpr *E,
AllocType.isVolatileQualified());
else {
AggValueSlot Slot
- = AggValueSlot::forAddr(NewPtr, AllocType.getQualifiers(), true);
+ = AggValueSlot::forAddr(NewPtr, AllocType.getQualifiers(),
+ AggValueSlot::IsDestructed,
+ AggValueSlot::DoesNotNeedGCBarriers);
CGF.EmitAggExpr(Init, Slot);
}
}
OpenPOWER on IntegriCloud