about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2023-06-18 19:40:12 -0400
committerAntoni Boucher <bouanto@zoho.com>2023-06-19 10:53:33 -0400
commit607cbfda14ab8a4292d34afdffdf817f81fe95ab (patch)
treea81450d77ee53fda73e6cf5253534a8bdabf6d2d /src
parent3d7ec5923d2e4373a354e7aec879e09e48f21517 (diff)
downloadrust-607cbfda14ab8a4292d34afdffdf817f81fe95ab.tar.gz
rust-607cbfda14ab8a4292d34afdffdf817f81fe95ab.zip
Cleanup and update to rustc 2023-06-19
Diffstat (limited to 'src')
-rw-r--r--src/common.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.rs b/src/common.rs
index 7fa986e2737..b62f4676f70 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -108,6 +108,10 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
         self.const_uint(self.type_u64(), i)
     }
 
+    fn const_u128(&self, i: u128) -> RValue<'gcc> {
+        self.const_uint_big(self.type_u128(), i)
+    }
+
     fn const_usize(&self, i: u64) -> RValue<'gcc> {
         let bit_size = self.data_layout().pointer_size.bits();
         if bit_size < 64 {