[cfe-commits] r55223 - in /cfe/trunk/lib/CodeGen: CGExpr.cpp CGExprAgg.cpp CGExprScalar.cpp CGObjC.cpp CGObjCGNU.cpp CGObjCMac.cpp CGObjCRuntime.h CodeGenFunction.h

Chris Lattner clattner at apple.com
Sat Aug 23 16:51:48 PDT 2008


On Aug 22, 2008, at 8:46 PM, Daniel Dunbar wrote:

> Author: ddunbar
> Date: Fri Aug 22 22:46:30 2008
> New Revision: 55223
>
> URL: http://llvm.org/viewvc/llvm-project?rev=55223&view=rev
> Log:
> Trim CGObjCRuntime::GenerateMessageSend[Super]
> - Returns an RValue.

Note that calls return a modifiable lvalue in c++/objc++, so the  
following is legal:

[whatever doit].field = 17;

Does your change impact supporting this in the future?  Here's a C++  
testcase:

#include <utility>

std::pair<int, float> foo();

void bar() {
   foo().first = 7;
}

-Chris



More information about the cfe-commits mailing list