Swap the order of a piece of code to make follow up diffs simpler
This commit is contained in:
parent
fcb890ea0c
commit
f0fa06bb7a
1 changed files with 2 additions and 2 deletions
|
@ -354,8 +354,6 @@ impl<'ll> CodegenCx<'ll, '_> {
|
||||||
};
|
};
|
||||||
let alloc = alloc.inner();
|
let alloc = alloc.inner();
|
||||||
|
|
||||||
let val_llty = self.val_ty(v);
|
|
||||||
|
|
||||||
let instance = Instance::mono(self.tcx, def_id);
|
let instance = Instance::mono(self.tcx, def_id);
|
||||||
let ty = instance.ty(self.tcx, ty::ParamEnv::reveal_all());
|
let ty = instance.ty(self.tcx, ty::ParamEnv::reveal_all());
|
||||||
if !is_mutable {
|
if !is_mutable {
|
||||||
|
@ -366,6 +364,8 @@ impl<'ll> CodegenCx<'ll, '_> {
|
||||||
|
|
||||||
let g = self.get_static_inner(def_id, llty);
|
let g = self.get_static_inner(def_id, llty);
|
||||||
|
|
||||||
|
let val_llty = self.val_ty(v);
|
||||||
|
|
||||||
let g = if val_llty == llty {
|
let g = if val_llty == llty {
|
||||||
g
|
g
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue