]> granicus.if.org Git - clang/commitdiff
Add BLOCK_HAS_DESCRIPTOR to global blocks.
authorAnders Carlsson <andersca@mac.com>
Sun, 1 Mar 2009 21:09:29 +0000 (21:09 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 1 Mar 2009 21:09:29 +0000 (21:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65788 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index da7afe1d436fc479ec42f5a0c76e66edd44e9d60..a26c0709e39a41aedc780f7f354621f02971551d 100644 (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);