From: Anders Carlsson Date: Sun, 1 Mar 2009 21:09:29 +0000 (+0000) Subject: Add BLOCK_HAS_DESCRIPTOR to global blocks. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8045ee072879657370cbd97dca46aea45ec44e2d;p=clang Add BLOCK_HAS_DESCRIPTOR to global blocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65788 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index da7afe1d43..a26c0709e3 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -508,7 +508,8 @@ CodeGenModule::GetAddrOfGlobalBlock(const BlockExpr *BE, const char * n) { LiteralFields[0] = getNSConcreteGlobalBlock(); // Flags - LiteralFields[1] = llvm::ConstantInt::get(IntTy, BLOCK_IS_GLOBAL); + LiteralFields[1] = + llvm::ConstantInt::get(IntTy, BLOCK_IS_GLOBAL | BLOCK_HAS_DESCRIPTOR); // Reserved LiteralFields[2] = llvm::Constant::getNullValue(IntTy);