[cfe-commits] r58011 - /cfe/trunk/Driver/RewriteBlocks.cpp

Steve Naroff snaroff at apple.com
Wed Oct 22 16:42:05 PDT 2008


Author: snaroff
Date: Wed Oct 22 18:42:04 2008
New Revision: 58011

URL: http://llvm.org/viewvc/llvm-project?rev=58011&view=rev
Log:
Fix <rdar://problem/6312683> clang block rewriter:

Modified:
    cfe/trunk/Driver/RewriteBlocks.cpp

Modified: cfe/trunk/Driver/RewriteBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteBlocks.cpp?rev=58011&r1=58010&r2=58011&view=diff

==============================================================================
--- cfe/trunk/Driver/RewriteBlocks.cpp (original)
+++ cfe/trunk/Driver/RewriteBlocks.cpp Wed Oct 22 18:42:04 2008
@@ -804,7 +804,6 @@
   const PointerType *PT = QT->getAsPointerType();
   if (PT) {
     FTP = PT->getPointeeType()->getAsFunctionTypeProto();
-    assert(FTP && "BlockPointerTypeTakeAnyBlockArguments(): not a function pointer type");
   } else {
     const BlockPointerType *BPT = QT->getAsBlockPointerType();
     assert(BPT && "BlockPointerTypeTakeAnyBlockArguments(): not a block pointer type");





More information about the cfe-commits mailing list