diff options
| author | Josh Stone <jistone@redhat.com> | 2021-11-05 10:26:16 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-11-05 10:26:16 -0700 |
| commit | 1d04577ee05e18cb9d25bbfac6d5a0302f380de8 (patch) | |
| tree | 06eab5005b828180754bbae5b91de2f118a6cc9b /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | d22dd65835190278f315e06442614142653ec98f (diff) | |
| download | rust-1d04577ee05e18cb9d25bbfac6d5a0302f380de8.tar.gz rust-1d04577ee05e18cb9d25bbfac6d5a0302f380de8.zip | |
Remove some minor checks for LLVM < 12
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 0707faf610c..6c74163fb49 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -731,7 +731,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { } fn fptoui_sat(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> Option<&'ll Value> { - if llvm_util::get_version() >= (12, 0, 0) && !self.fptoint_sat_broken_in_llvm() { + if !self.fptoint_sat_broken_in_llvm() { let src_ty = self.cx.val_ty(val); let float_width = self.cx.float_width(src_ty); let int_width = self.cx.int_width(dest_ty); @@ -743,7 +743,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { } fn fptosi_sat(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> Option<&'ll Value> { - if llvm_util::get_version() >= (12, 0, 0) && !self.fptoint_sat_broken_in_llvm() { + if !self.fptoint_sat_broken_in_llvm() { let src_ty = self.cx.val_ty(val); let float_width = self.cx.float_width(src_ty); let int_width = self.cx.int_width(dest_ty); |
