]> git.lizzy.rs Git - rust.git/commitdiff
Avoid from_immediate_or_packed_pair in ThreadLocalRef codegen
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sun, 4 Dec 2022 12:53:46 +0000 (12:53 +0000)
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>
Sun, 4 Dec 2022 12:53:46 +0000 (12:53 +0000)
compiler/rustc_codegen_ssa/src/mir/rvalue.rs

index 9ad96f7a44742f87d227114f102f388b5c110e01..23196c8cbaea1ebf4f3d9c9e9d82ab681d9aa5b6 100644 (file)
@@ -462,7 +462,7 @@ pub fn codegen_rvalue_operand(
                 assert!(bx.cx().tcx().is_static(def_id));
                 let static_ = bx.get_static(def_id);
                 let layout = bx.layout_of(bx.cx().tcx().static_ptr_ty(def_id));
                 assert!(bx.cx().tcx().is_static(def_id));
                 let static_ = bx.get_static(def_id);
                 let layout = bx.layout_of(bx.cx().tcx().static_ptr_ty(def_id));
-                OperandRef::from_immediate_or_packed_pair(bx, static_, layout)
+                OperandRef { val: OperandValue::Immediate(static_), layout }
             }
             mir::Rvalue::Use(ref operand) => self.codegen_operand(bx, operand),
             mir::Rvalue::Repeat(..) | mir::Rvalue::Aggregate(..) => {
             }
             mir::Rvalue::Use(ref operand) => self.codegen_operand(bx, operand),
             mir::Rvalue::Repeat(..) | mir::Rvalue::Aggregate(..) => {