aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-25 02:11:03 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-25 02:11:03 +0000
commit545d996ec5a3113f046944f11b27cc2d6cb055b4 (patch)
treee685c2dbd04eb819195efca9a0539719e02af5b5 /lib/CodeGen/CGClass.cpp
parent913dab2525cc705e5238023a446f5371fa411883 (diff)
LValue carries a type now, so simplify the main EmitLoad/Store APIs
by removing the redundant type parameter. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r--lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp
index 77a5be6c96..313ee57f7f 100644
--- a/lib/CodeGen/CGClass.cpp
+++ b/lib/CodeGen/CGClass.cpp
@@ -556,7 +556,7 @@ static void EmitMemberInitializer(CodeGenFunction &CGF,
CGF.EmitExprAsInit(MemberInit->getInit(), Field, LHS, false);
} else {
RValue RHS = RValue::get(CGF.EmitScalarExpr(MemberInit->getInit()));
- CGF.EmitStoreThroughLValue(RHS, LHS, FieldType);
+ CGF.EmitStoreThroughLValue(RHS, LHS);
}
} else if (MemberInit->getInit()->getType()->isAnyComplexType()) {
CGF.EmitComplexExprIntoAddr(MemberInit->getInit(), LHS.getAddress(),