Skip to content

Commit 0616b5f

Browse files
committed
Removing potentially error-prone fallthrough. NFC
This fallthrough if other cases are added between fabs and default could cause fabs to fall to the next case resulting in a bug. Better getting rid of it immediately just to be sure. llvm-svn: 292003
1 parent 67e94fb commit 0616b5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Analysis/InstructionSimplify.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4267,6 +4267,7 @@ static Value *SimplifyIntrinsic(Function *F, IterTy ArgBegin, IterTy ArgEnd,
42674267
case Intrinsic::fabs: {
42684268
if (SignBitMustBeZero(*ArgBegin, Q.TLI))
42694269
return *ArgBegin;
4270+
return nullptr;
42704271
}
42714272
default:
42724273
return nullptr;

0 commit comments

Comments
 (0)