diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-12-03 03:08:40 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-12-03 03:08:40 +0000 |
commit | 51f512090530807e2c80f9411cc262025820c859 (patch) | |
tree | b35399032047c304b024e6f10036f37f319ea6cc /lib/CodeGen/CGExprAgg.cpp | |
parent | d7722d9d76a851e7897f4127626616d3b1b8e530 (diff) |
Add a utility to get a RValue for a given LValue for an aggregate; switch a few places over to it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 0996339d3a..c55630da63 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -263,9 +263,7 @@ void AggExprEmitter::EmitFinalDestCopy(const Expr *E, RValue Src, bool Ignore) { void AggExprEmitter::EmitFinalDestCopy(const Expr *E, LValue Src, bool Ignore) { assert(Src.isSimple() && "Can't have aggregate bitfield, vector, etc"); - EmitFinalDestCopy(E, RValue::getAggregate(Src.getAddress(), - Src.isVolatileQualified()), - Ignore); + EmitFinalDestCopy(E, Src.asAggregateRValue(), Ignore); } //===----------------------------------------------------------------------===// |