]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #32362 - bluss:float-fast-math, r=eddyb
authorbors <bors@rust-lang.org>
Sat, 19 Mar 2016 22:41:42 +0000 (15:41 -0700)
committerbors <bors@rust-lang.org>
Sat, 19 Mar 2016 22:41:42 +0000 (15:41 -0700)
Fix floating point fast-math intrinsics

The implementation did not handle the case where both operands were constants, which caused an llvm assertion:

```
rustc: //buildslave//rust-buildbot//slave//nightly-dist-rustc-musl-linux//build//src//llvm//include/llvm/Support/Casting.h:237:
typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::Instruction; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::Instruction*]:
Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
```


Trivial merge