]> granicus.if.org Git - clang/commitdiff
The blocks ABI is wrong, add a FIXME.
authorMike Stump <mrs@apple.com>
Sat, 21 Feb 2009 20:07:44 +0000 (20:07 +0000)
committerMike Stump <mrs@apple.com>
Sat, 21 Feb 2009 20:07:44 +0000 (20:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65243 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index d4e72acda01fe3bfb57cfaf1945c76616061c2a2..60bf73f0b413be818bb9f46b0d543dbbc5bc3166 100644 (file)
@@ -43,6 +43,9 @@ llvm::Constant *CodeGenFunction::BuildDescriptorBlockDecl(uint64_t Size) {
   Elts.push_back(C);
 
   // Size
+  // FIXME: What is the right way to say this doesn't fit?  We should give
+  // a user diagnostic in that case.  Better fix would be to change the
+  // API to size_t.
   C = llvm::ConstantInt::get(UnsignedLongTy, Size);
   Elts.push_back(C);