From: Dale Johannesen Date: Sat, 10 Jul 2010 19:53:56 +0000 (+0000) Subject: Fix compile error. Per Fariborz. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=720b6392f901085f851f1575feaaa291f26731d3;p=clang Fix compile error. Per Fariborz. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108051 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/TreeTransform.h b/lib/Sema/TreeTransform.h index 05ae38e84a..2e92d32736 100644 --- a/lib/Sema/TreeTransform.h +++ b/lib/Sema/TreeTransform.h @@ -6280,7 +6280,8 @@ TreeTransform::TransformBlockDeclRefExpr(BlockDeclRefExpr *E) { return SemaRef.ExprError(); // Is this instantiation of a __block variable? - if (E->getDecl()->getAttr()) + ValueDecl *V = E->getDecl(); + if (V->getAttr()) ND->addAttr(::new (SemaRef.Context) BlocksAttr(BlocksAttr::ByRef)); if (!getDerived().AlwaysRebuild() &&