Skip to content

Commit 262ace5

Browse files
committed
Avoid from_immediate_or_packed_pair in ThreadLocalRef codegen
1 parent b2e0db9 commit 262ace5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/mir/rvalue.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
462462
assert!(bx.cx().tcx().is_static(def_id));
463463
let static_ = bx.get_static(def_id);
464464
let layout = bx.layout_of(bx.cx().tcx().static_ptr_ty(def_id));
465-
OperandRef::from_immediate_or_packed_pair(bx, static_, layout)
465+
OperandRef { val: OperandValue::Immediate(static_), layout }
466466
}
467467
mir::Rvalue::Use(ref operand) => self.codegen_operand(bx, operand),
468468
mir::Rvalue::Repeat(..) | mir::Rvalue::Aggregate(..) => {

0 commit comments

Comments
 (0)