about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-04-03 06:57:12 +0000
committerbors <bors@rust-lang.org>2024-04-03 06:57:12 +0000
commit82d9326b8d7d0b13c3bf7af49f6fe4bb9980a02d (patch)
treea47932eb544490ae00cec13f3e61dce16670c102 /compiler/rustc_codegen_gcc
parent4397b6b00c41253afc1efc62a3581ff315bd86eb (diff)
parent22382ebd5cba2c7144b3755d988733b189253046 (diff)
downloadrust-82d9326b8d7d0b13c3bf7af49f6fe4bb9980a02d.tar.gz
rust-82d9326b8d7d0b13c3bf7af49f6fe4bb9980a02d.zip
Auto merge of #3440 - rust-lang:rustup-2024-04-03, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/common.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_gcc/src/common.rs b/compiler/rustc_codegen_gcc/src/common.rs
index d243d7088ad..78d943192db 100644
--- a/compiler/rustc_codegen_gcc/src/common.rs
+++ b/compiler/rustc_codegen_gcc/src/common.rs
@@ -94,6 +94,10 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
         self.const_int(self.type_i32(), i as i64)
     }
 
+    fn const_i8(&self, i: i8) -> RValue<'gcc> {
+        self.const_int(self.type_i8(), i as i64)
+    }
+
     fn const_u32(&self, i: u32) -> RValue<'gcc> {
         self.const_uint(self.type_u32(), i as u64)
     }