Add BLOCK_HAS_DESCRIPTOR to global blocks.

llvm-svn: 65788
This commit is contained in:
Anders Carlsson 2009-03-01 21:09:29 +00:00
parent d70c8a8da6
commit 5878c797b3
1 changed files with 2 additions and 1 deletions

View File

@ -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);