diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-03-03 20:47:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 20:47:12 +0100 |
| commit | 273fe4a8a68e21eb9287dd250c0b9b993c96d20f (patch) | |
| tree | 0088aafd20f8834398278de15fddb37f88fb43fd | |
| parent | d344960f88f588db705c8129b53a74b563c024c1 (diff) | |
| parent | c25f12a667cd83fb79e6f7098e3191f9b1ab6416 (diff) | |
| download | rust-273fe4a8a68e21eb9287dd250c0b9b993c96d20f.tar.gz rust-273fe4a8a68e21eb9287dd250c0b9b993c96d20f.zip | |
Rollup merge of #137894 - compiler-errors:no-scalar-pair-opt, r=oli-obk
Revert "store ScalarPair via memset when one side is undef and the other side can be memset" cc #137892 reverts #135335 r? oli-obk
| -rw-r--r-- | src/common.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common.rs b/src/common.rs index 20a3482aaa2..2052a6aa215 100644 --- a/src/common.rs +++ b/src/common.rs @@ -64,11 +64,6 @@ impl<'gcc, 'tcx> ConstCodegenMethods<'tcx> for CodegenCx<'gcc, 'tcx> { if type_is_pointer(typ) { self.context.new_null(typ) } else { self.const_int(typ, 0) } } - fn is_undef(&self, _val: RValue<'gcc>) -> bool { - // FIXME: actually check for undef - false - } - fn const_undef(&self, typ: Type<'gcc>) -> RValue<'gcc> { let local = self.current_func.borrow().expect("func").new_local(None, typ, "undefined"); if typ.is_struct().is_some() { |
