git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241302
91177308-0d34-0410-b5e6-
96231b3b80d8
WebAssemblyTargetLowering::WebAssemblyTargetLowering(
const TargetMachine &TM, const WebAssemblySubtarget &STI)
- : TargetLowering(TM), Subtarget(&STI) {}
+ : TargetLowering(TM), Subtarget(&STI) {
+ // WebAssembly does not produce floating-point exceptions on normal floating
+ // point operations.
+ setHasFloatingPointExceptions(false);
+}
//===----------------------------------------------------------------------===//
// WebAssembly Lowering private implementation.