From: Mike Stump Date: Sat, 21 Feb 2009 20:07:44 +0000 (+0000) Subject: The blocks ABI is wrong, add a FIXME. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6840002c37ba25effe5eb4bb89c4ae2e1d80945;p=clang The blocks ABI is wrong, add a FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65243 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index d4e72acda0..60bf73f0b4 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -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);