]> granicus.if.org Git - clang/commitdiff
Fix <rdar://problem/6312683> clang block rewriter:
authorSteve Naroff <snaroff@apple.com>
Wed, 22 Oct 2008 23:42:04 +0000 (23:42 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 22 Oct 2008 23:42:04 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58011 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteBlocks.cpp

index 2e7ce0559f76b33cc2a014584ca0222a46afb47b..cab4b817811598caa60ed25695f86b0379bd4739 100644 (file)
@@ -804,7 +804,6 @@ bool RewriteBlocks::PointerTypeTakesAnyBlockArguments(QualType QT) {
   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");