diff options
author | John McCall <rjmccall@apple.com> | 2010-12-04 02:32:38 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-12-04 02:32:38 +0000 |
commit | 119a1c6c4029d30cae7b31a2826aa0ff70d01668 (patch) | |
tree | eaec3cc289e887d12238c3f9b47d706f7312db0a /lib/CodeGen/CGExprScalar.cpp | |
parent | 91252d115bdb6f937192a8dbc86c5abe00101436 (diff) |
Kill the KVC l-value kind and calculate the base expression when emitting
the l-value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index ea23f2d6f2..86d7216bbe 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1127,9 +1127,7 @@ Value *ScalarExprEmitter::EmitCastExpr(CastExpr *CE) { if (E->Classify(CGF.getContext()).isGLValue()) { LValue LV = CGF.EmitLValue(E); if (LV.isPropertyRef()) - CGF.EmitLoadOfPropertyRefLValue(LV, E->getType()); - else if (LV.isKVCRef()) - CGF.EmitLoadOfKVCRefLValue(LV, E->getType()); + CGF.EmitLoadOfPropertyRefLValue(LV); } else CGF.EmitAnyExpr(E, AggValueSlot::ignored(), true); @@ -1583,7 +1581,7 @@ Value *ScalarExprEmitter::EmitCompoundAssign(const CompoundAssignOperator *E, return RHS; // Objective-C property assignment never reloads the value following a store. - if (LHS.isPropertyRef() || LHS.isKVCRef()) + if (LHS.isPropertyRef()) return RHS; // If the lvalue is non-volatile, return the computed value of the assignment. @@ -2183,7 +2181,7 @@ Value *ScalarExprEmitter::VisitBinAssign(const BinaryOperator *E) { return RHS; // Objective-C property assignment never reloads the value following a store. - if (LHS.isPropertyRef() || LHS.isKVCRef()) + if (LHS.isPropertyRef()) return RHS; // If the lvalue is non-volatile, return the computed value of the assignment. |