[cfe-commits] r103280 - /cfe/trunk/lib/CodeGen/CGExprCXX.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri May 7 11:59:54 PDT 2010
Author: fjahanian
Date: Fri May 7 13:59:54 2010
New Revision: 103280
URL: http://llvm.org/viewvc/llvm-project?rev=103280&view=rev
Log:
Minor mod. to my last patch.
Modified:
cfe/trunk/lib/CodeGen/CGExprCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprCXX.cpp?rev=103280&r1=103279&r2=103280&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprCXX.cpp Fri May 7 13:59:54 2010
@@ -277,7 +277,8 @@
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();
More information about the cfe-commits
mailing list