Skip to content

Commit 20972ff

Browse files
[LLVM22] version out removed TargetOptions.UnsafeFPMath (#5018)
1 parent 36fa56a commit 20972ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/cl_options.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,9 @@ llvm::FastMathFlags defaultFMF;
555555
void setDefaultMathOptions(llvm::TargetOptions &targetOptions) {
556556
if (fFastMath) {
557557
defaultFMF.setFast();
558+
#if LDC_LLVM_VER < 2200
558559
targetOptions.UnsafeFPMath = true;
560+
#endif
559561
}
560562
}
561563

0 commit comments

Comments
 (0)