summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-15 04:57:14 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-15 04:57:14 +0000
commit1c9c3fd50a05147d9e14d12bb42910eda831a373 (patch)
tree39b38a9bec19df6fba6eb4e12fa19145ee375962 /clang/lib/CodeGen/CGExprConstant.cpp
parent3b1db392fcbacfafbbb2af919927792647e75c70 (diff)
downloadbcm5719-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/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index 9c31c2a3d53..b99529a105d 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -755,7 +755,7 @@ public:
if (!VD->hasLocalStorage()) {
if (VD->isFileVarDecl() || VD->hasExternalStorage())
return CGM.GetAddrOfGlobalVar(VD);
- else if (VD->isBlockVarDecl()) {
+ else if (VD->isLocalVarDecl()) {
assert(CGF && "Can't access static local vars without CGF");
return CGF->GetAddrOfStaticLocalVar(VD);
}
OpenPOWER on IntegriCloud