Skip to content

Commit e79bb87

Browse files
authored
[InstCombine] Fixup commit 7253c6f (#123315)
This should fix the assert failure we were getting for the darwin OS.
1 parent 32a4650 commit e79bb87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,8 +2067,7 @@ convertFSqrtDivIntoFMul(CallInst *CI, Instruction *X,
20672067
FMul->copyMetadata(*X);
20682068
FMul->copyFastMathFlags(FastMathFlags::intersectRewrite(R1FMF, R2FMF) |
20692069
FastMathFlags::unionValue(R1FMF, R2FMF));
2070-
IC->replaceInstUsesWith(*X, FMul);
2071-
return IC->eraseInstFromFunction(*X);
2070+
return IC->replaceInstUsesWith(*X, FMul);
20722071
}
20732072

20742073
Instruction *InstCombinerImpl::visitFDiv(BinaryOperator &I) {

0 commit comments

Comments
 (0)