forked from OSchip/llvm-project
Fix a couple assertions that can never fire because the condition ANDed with the string is just true or 1.
llvm-svn: 267313
This commit is contained in:
parent
855d182656
commit
0da2076ba1
|
@ -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>();
|
||||
|
|
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue