[WebAssembly] Set the HasFloatingPointExceptions flag for WebAssembly.

llvm-svn: 241302
This commit is contained in:
Dan Gohman 2015-07-02 21:36:25 +00:00
parent d0212cd46c
commit bfaf7e15d1
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ using namespace llvm;
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.