Minor mod. to my last patch.

llvm-svn: 103280
This commit is contained in:
Fariborz Jahanian 2010-05-07 18:59:54 +00:00
parent fdf474b05e
commit 7828ab1ed9
1 changed files with 2 additions and 1 deletions

View File

@ -277,7 +277,8 @@ CodeGenFunction::EmitCXXOperatorMemberCallExpr(const CXXOperatorCallExpr *E,
llvm::Value *This;
if (LV.isPropertyRef()) {
RValue RV = EmitLoadOfPropertyRefLValue(LV, E->getArg(0)->getType());
This = RV.isScalar() ? RV.getScalarVal() : RV.getAggregateAddr();
assert (!RV.isScalar() && "EmitCXXOperatorMemberCallExpr");
This = RV.getAggregateAddr();
}
else
This = LV.getAddress();