about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/common.rs
diff options
context:
space:
mode:
authorDonoughLiu <ldm2993593805@163.com>2023-06-10 03:21:39 +0800
committerDonoughLiu <ldm2993593805@163.com>2023-06-10 03:39:24 +0800
commit204bfb6a8c1f9aaa9b5c04d72a47f7fd8772a4bb (patch)
treef0b12fd79eb83e8cd45f5401c4357d7e01e7c4f4 /compiler/rustc_codegen_llvm/src/common.rs
parent397641f3bd4f4211d0a1e9ada8d477bf495735b2 (diff)
downloadrust-204bfb6a8c1f9aaa9b5c04d72a47f7fd8772a4bb.tar.gz
rust-204bfb6a8c1f9aaa9b5c04d72a47f7fd8772a4bb.zip
Support 128-bit enum variant in debuginfo codegen
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/common.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs
index a3910fef954..a2db59bd6c4 100644
--- a/compiler/rustc_codegen_llvm/src/common.rs
+++ b/compiler/rustc_codegen_llvm/src/common.rs
@@ -168,6 +168,10 @@ impl<'ll, 'tcx> ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
         self.const_uint(self.type_i64(), i)
     }
 
+    fn const_u128(&self, i: u128) -> &'ll Value {
+        self.const_uint_big(self.type_i128(), i)
+    }
+
     fn const_usize(&self, i: u64) -> &'ll Value {
         let bit_size = self.data_layout().pointer_size.bits();
         if bit_size < 64 {