[cfe-commits] r43258 - in /cfe/trunk: CodeGen/CGExpr.cpp test/CodeGen/struct.c
Devang Patel
dpatel at apple.com
Tue Oct 23 17:10:01 PDT 2007
On Oct 23, 2007, at 5:00 PM, Chris Lattner wrote:
> On Oct 23, 2007, at 1:28 PM, Devang Patel wrote:
>> Author: dpatel
>> Date: Tue Oct 23 15:28:39 2007
>> New Revision: 43258
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=43258&view=rev
>> Log:
>> Handle simple struct member expr.
>
>> +LValue CodeGenFunction::EmitMemberExpr(const MemberExpr *E) {
>> +
>> + // FIXME: Handle union members.
>> + if (E->getBase()->getType()->getAsUnionType()) {
>
> Please use the predicate version of this: "->isUnionType()" if you
> don't want the result pointer.
ok
-
Devang
More information about the cfe-commits
mailing list