diff options
| author | Ralf Jung <post@ralfj.de> | 2025-09-20 13:06:53 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 13:06:53 +0000 |
| commit | ad7640452783d3fe10fffaace9389b09f7cdea7b (patch) | |
| tree | 2168626af4efa7646b210b6549460876727258b9 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 0dac2f06fa6f7edc166edf12831902f909ba7207 (diff) | |
| parent | 5c2320380d4e412348fede00c70bfb9ae4e85d86 (diff) | |
| download | rust-ad7640452783d3fe10fffaace9389b09f7cdea7b.tar.gz rust-ad7640452783d3fe10fffaace9389b09f7cdea7b.zip | |
Merge pull request #4598 from rust-lang/rustup-2025-09-20
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 7d0691366e6..0f17cc9063a 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -1091,16 +1091,11 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { ty: Ty<'tcx>, lhs: Self::Value, rhs: Self::Value, - ) -> Option<Self::Value> { - // FIXME: See comment on the definition of `three_way_compare`. - if crate::llvm_util::get_version() < (20, 0, 0) { - return None; - } - + ) -> Self::Value { let size = ty.primitive_size(self.tcx); let name = if ty.is_signed() { "llvm.scmp" } else { "llvm.ucmp" }; - Some(self.call_intrinsic(name, &[self.type_i8(), self.type_ix(size.bits())], &[lhs, rhs])) + self.call_intrinsic(name, &[self.type_i8(), self.type_ix(size.bits())], &[lhs, rhs]) } /* Miscellaneous instructions */ |
