[cfe-commits] r108051 - /cfe/trunk/lib/Sema/TreeTransform.h
Dale Johannesen
dalej at apple.com
Sat Jul 10 12:53:57 PDT 2010
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.
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() &&
More information about the cfe-commits
mailing list