From 1c9c3fd50a05147d9e14d12bb42910eda831a373 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 15 Oct 2010 04:57:14 +0000 Subject: Death to blocks, or at least the word "block" in one particular obnoxiously ambiguous context. llvm-svn: 116567 --- clang/lib/CodeGen/CGExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGExprConstant.cpp') 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); } -- cgit v1.2.3