]> granicus.if.org Git - clang/commitdiff
Fix a couple assertions that can never fire because the condition ANDed with the...
authorCraig Topper <craig.topper@gmail.com>
Sun, 24 Apr 2016 02:08:22 +0000 (02:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 24 Apr 2016 02:08:22 +0000 (02:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267313 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/Rewrite/RewriteModernObjC.cpp
lib/Frontend/Rewrite/RewriteObjC.cpp

index 91e57753b75ec183573611a296c96e6622fedb75..1df73ef9cd69c6877cbaff03422e2836a2669b98 100644 (file)
@@ -4640,7 +4640,7 @@ Stmt *RewriteModernObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp
                = dyn_cast<PseudoObjectExpr>(BlockExp)) {
     CPT = POE->getType()->castAs<BlockPointerType>();
   } else {
-    assert(1 && "RewriteBlockClass: Bad type");
+    assert(false && "RewriteBlockClass: Bad type");
   }
   assert(CPT && "RewriteBlockClass: Bad type");
   const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>();
index 3508ec43036de32c9da718a9ac518a94d53d70f2..48c31b031458c87a8b2c99b79f2327892a6d8d8b 100644 (file)
@@ -3748,7 +3748,7 @@ Stmt *RewriteObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) {
                = dyn_cast<PseudoObjectExpr>(BlockExp)) {
     CPT = POE->getType()->castAs<BlockPointerType>();
   } else {
-    assert(1 && "RewriteBlockClass: Bad type");
+    assert(false && "RewriteBlockClass: Bad type");
   }
   assert(CPT && "RewriteBlockClass: Bad type");
   const FunctionType *FT = CPT->getPointeeType()->getAs<FunctionType>();