[cfe-commits] r44156 - in /cfe/trunk: Driver/RewriteTest.cpp Sema/SemaExpr.cpp include/clang/AST/Expr.h

Chris Lattner clattner at apple.com
Wed Nov 14 21:41:58 PST 2007


On Nov 14, 2007, at 6:58 PM, Steve Naroff wrote:

> Author: snaroff
> Date: Wed Nov 14 20:58:25 2007
> New Revision: 44156
>
> URL: http://llvm.org/viewvc/llvm-project?rev=44156&view=rev
> Log:
>
> - Implement ivar rewrite (patch by Fariborz).
> - RewriteMessageExpr()...make implicit casts explicit with  
> synthesizing call (removing warnings when calling objc_msgSend()).

...

> --- cfe/trunk/include/clang/AST/Expr.h (original)
> +++ cfe/trunk/include/clang/AST/Expr.h Wed Nov 14 20:58:25 2007
> @@ -1256,18 +1256,23 @@
>   class ObjcIvarDecl *D;
>   SourceLocation Loc;
>   Expr *Base;
> -  bool IsArrow;      // True if this is "X->F", false if this is  
> "X.F".
> +  bool IsArrow:1;      // True if this is "X->F", false if this is  
> "X.F".
> +  bool IsFreeIvar:1;   // True if ivar reference has no base (self  
> assumed).

What is IsFreeIvar used for?  Shouldn't references to fields of the  
current objects just use a declrefexpr?

-Chris



More information about the cfe-commits mailing list