summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
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/CodeGenFunction.h
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/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 381842097f9..2d47301ec51 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1465,7 +1465,8 @@ public:
/// aggregate type.
AggValueSlot CreateAggTemp(QualType T, const Twine &Name = "tmp") {
return AggValueSlot::forAddr(CreateMemTemp(T, Name), T.getQualifiers(),
- false);
+ AggValueSlot::IsNotDestructed,
+ AggValueSlot::DoesNotNeedGCBarriers);
}
/// Emit a cast to void* in the appropriate address space.
OpenPOWER on IntegriCloud