Get rid of a useless if statement whose then and else blocks were identical.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32729 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-12-21 07:15:54 +00:00
parent 2e20d39493
commit a2913eea9d

View File

@ -920,10 +920,7 @@ struct StrLenOptimization : public LibCallOptimization {
// strlen("xyz") -> 3 (for example)
const Type *Ty = SLC.getTargetData()->getIntPtrType();
if (Ty->isSigned())
ci->replaceAllUsesWith(ConstantInt::get(Ty, len));
else
ci->replaceAllUsesWith(ConstantInt::get(Ty, len));
ci->replaceAllUsesWith(ConstantInt::get(Ty, len));
ci->eraseFromParent();
return true;