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 | 58649dc6095d47bbd0d4c56d180d084c3966d30e (patch) | |
| tree | 1ad82658176cb24b5183b55637f4a5655157e21d /clang/lib/CodeGen/CGExprAgg.cpp | |
| parent | 561cd86acf50e1f5c881e286aeddbf141bbc6fa5 (diff) | |
| download | llvm-58649dc6095d47bbd0d4c56d180d084c3966d30e.zip llvm-58649dc6095d47bbd0d4c56d180d084c3966d30e.tar.gz llvm-58649dc6095d47bbd0d4c56d180d084c3966d30e.tar.bz2 | |
Initialize AggValueSlot's flags along all paths, plus minor beautification.
Prospective fix for broken commit in r114045.
llvm-svn: 114060
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index d280711..bd773f2 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/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; |
