[cfe-commits] r43258 - in /cfe/trunk: CodeGen/CGExpr.cpp test/CodeGen/struct.c

Chris Lattner clattner at apple.com
Tue Oct 23 17:00:15 PDT 2007


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.

-Chris



More information about the cfe-commits mailing list