diff options
author | John McCall <rjmccall@apple.com> | 2010-09-16 03:13:23 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-09-16 03:13:23 +0000 |
commit | d1a5f13140a5bfcf9107b28de906518d2313fdf0 (patch) | |
tree | a0b6649978ba43f95107a0f72dc9c4e269f018bb /lib/CodeGen/CGExprAgg.cpp | |
parent | 90392b21e3a0571af6db6ba58951723b8b570cb0 (diff) |
Initialize AggValueSlot's flags along all paths, plus minor beautification.
Prospective fix for broken commit in r114045.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index d28071197c..bd773f2dad 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -39,7 +39,7 @@ class AggExprEmitter : public StmtVisitor<AggExprEmitter> { // If the destination slot requires garbage collection, we can't // use the real return value slot, because we have to use the GC // API. - if (Dest.isRequiresGCollection()) return ReturnValueSlot(); + if (Dest.requiresGCollection()) return ReturnValueSlot(); return ReturnValueSlot(Dest.getAddr(), Dest.isVolatile()); } @@ -177,7 +177,7 @@ bool AggExprEmitter::TypeRequiresGCollection(QualType T) { /// directly into the return value slot. If GC does interfere, a final /// move will be performed. void AggExprEmitter::EmitGCMove(const Expr *E, RValue Src) { - if (Dest.isRequiresGCollection()) { + if (Dest.requiresGCollection()) { std::pair<uint64_t, unsigned> TypeInfo = CGF.getContext().getTypeInfo(E->getType()); unsigned long size = TypeInfo.first/8; @@ -210,7 +210,7 @@ void AggExprEmitter::EmitFinalDestCopy(const Expr *E, RValue Src, bool Ignore) { Dest = CGF.CreateAggTemp(E->getType(), "agg.tmp"); } - if (Dest.isRequiresGCollection()) { + if (Dest.requiresGCollection()) { std::pair<uint64_t, unsigned> TypeInfo = CGF.getContext().getTypeInfo(E->getType()); unsigned long size = TypeInfo.first/8; |