Skip to content

Commit be6893a

Browse files
[CodeGen] Remove an unnecessary cast (NFC) (#149339)
getExceptionMode() already returns LangOptions::FPExceptionModeKind.
1 parent f48e2bb commit be6893a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CodeGen/CodeGenFunction.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ void CodeGenFunction::CGFPOptionsRAII::ConstructorHelper(FPOptions FPFeatures) {
161161
llvm::RoundingMode NewRoundingBehavior = FPFeatures.getRoundingMode();
162162
CGF.Builder.setDefaultConstrainedRounding(NewRoundingBehavior);
163163
auto NewExceptionBehavior =
164-
ToConstrainedExceptMD(static_cast<LangOptions::FPExceptionModeKind>(
165-
FPFeatures.getExceptionMode()));
164+
ToConstrainedExceptMD(FPFeatures.getExceptionMode());
166165
CGF.Builder.setDefaultConstrainedExcept(NewExceptionBehavior);
167166

168167
CGF.SetFastMathFlags(FPFeatures);

0 commit comments

Comments
 (0)