[cfe-commits] r108051 - /cfe/trunk/lib/Sema/TreeTransform.h

Fariborz Jahanian fjahanian at apple.com
Mon Jul 12 08:05:49 PDT 2010


On Jul 10, 2010, at 12:53 PM, Dale Johannesen wrote:

> Author: johannes
> Date: Sat Jul 10 14:53:56 2010
> New Revision: 108051
>
> URL: http://llvm.org/viewvc/llvm-project?rev=108051&view=rev
> Log:
> Fix compile error.  Per Fariborz.

Thanks. To clarify, it is because of a shortcoming of a certain gcc  
version not being able to handle it.

- Fariborz

>
>
> Modified:
>    cfe/trunk/lib/Sema/TreeTransform.h
>
> Modified: cfe/trunk/lib/Sema/TreeTransform.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TreeTransform.h?rev=108051&r1=108050&r2=108051&view=diff
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/lib/Sema/TreeTransform.h (original)
> +++ cfe/trunk/lib/Sema/TreeTransform.h Sat Jul 10 14:53:56 2010
> @@ -6280,7 +6280,8 @@
>     return SemaRef.ExprError();
>
>   // Is this instantiation of a __block variable?
> -  if (E->getDecl()->getAttr<BlocksAttr>())
> +  ValueDecl *V = E->getDecl();
> +  if (V->getAttr<BlocksAttr>())
>     ND->addAttr(::new (SemaRef.Context) BlocksAttr 
> (BlocksAttr::ByRef));
>
>   if (!getDerived().AlwaysRebuild() &&
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list