From 8045ee072879657370cbd97dca46aea45ec44e2d Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 1 Mar 2009 21:09:29 +0000 Subject: [PATCH] Add BLOCK_HAS_DESCRIPTOR to global blocks. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65788 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGBlocks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.40.0