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 | 2869b5afe3cc962cfe33f17d44b0615deeeb7a38 (patch) | |
| tree | 3fedfbcfdfd0ea3fe5438e74cd17f8248d46c28d /clang/lib/CodeGen/CGExprAgg.cpp | |
| parent | ef3ad87ac649db1f09c1c337bdb8b5cfb1d0c268 (diff) | |
| download | bcm5719-llvm-2869b5afe3cc962cfe33f17d44b0615deeeb7a38.tar.gz bcm5719-llvm-2869b5afe3cc962cfe33f17d44b0615deeeb7a38.zip | |
Add a utility to get a RValue for a given LValue for an aggregate; switch a few places over to it.
llvm-svn: 145747
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 0996339d3ad..c55630da633 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/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); } //===----------------------------------------------------------------------===// |

