[cfe-commits] r65788 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp

Anders Carlsson andersca at mac.com
Sun Mar 1 13:09:29 PST 2009


Author: andersca
Date: Sun Mar  1 15:09:29 2009
New Revision: 65788

URL: http://llvm.org/viewvc/llvm-project?rev=65788&view=rev
Log:
Add BLOCK_HAS_DESCRIPTOR to global blocks.

Modified:
    cfe/trunk/lib/CodeGen/CGBlocks.cpp

Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=65788&r1=65787&r2=65788&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Sun Mar  1 15:09:29 2009
@@ -508,7 +508,8 @@
   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);





More information about the cfe-commits mailing list