diff options
| author | John McCall <rjmccall@apple.com> | 2010-10-15 04:57:14 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-10-15 04:57:14 +0000 |
| commit | 1c9c3fd50a05147d9e14d12bb42910eda831a373 (patch) | |
| tree | 39b38a9bec19df6fba6eb4e12fa19145ee375962 /clang/lib/CodeGen/CGExpr.cpp | |
| parent | 3b1db392fcbacfafbbb2af919927792647e75c70 (diff) | |
| download | bcm5719-llvm-1c9c3fd50a05147d9e14d12bb42910eda831a373.tar.gz bcm5719-llvm-1c9c3fd50a05147d9e14d12bb42910eda831a373.zip | |
Death to blocks, or at least the word "block" in one particular obnoxiously
ambiguous context.
llvm-svn: 116567
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 5b695cd52c3..d45cd2ad63b 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -1064,8 +1064,7 @@ static void setObjCGCLValueClass(const ASTContext &Ctx, const Expr *E, if (const DeclRefExpr *Exp = dyn_cast<DeclRefExpr>(E)) { if (const VarDecl *VD = dyn_cast<VarDecl>(Exp->getDecl())) { - if ((VD->isBlockVarDecl() && !VD->hasLocalStorage()) || - VD->isFileVarDecl()) { + if (VD->hasGlobalStorage()) { LV.setGlobalObjCRef(true); LV.setThreadLocalRef(VD->isThreadSpecified()); } |

