Skip to content

Commit 097d1c9

Browse files
committed
[InstCombine] Address review comments. NFC.
1 parent 937528e commit 097d1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,8 +1675,8 @@ static Instruction *reassociateFCmps(BinaryOperator &BO,
16751675
// Intersect FMF from the 2 source fcmps.
16761676
Value *NewFCmp =
16771677
Builder.CreateFCmpFMF(NanPred, X, Y,
1678-
cast<Instruction>(Op0)->getFastMathFlags() &
1679-
cast<Instruction>(BO10)->getFastMathFlags());
1678+
cast<FPMathOperator>(Op0)->getFastMathFlags() &
1679+
cast<FPMathOperator>(BO10)->getFastMathFlags());
16801680
return BinaryOperator::Create(Opcode, NewFCmp, BO11);
16811681
}
16821682

0 commit comments

Comments
 (0)