Skip to content

Commit 8e0f883

Browse files
committed
TMP: Ignore a declare_local in mir trans
More info at rust-lang#43370 (comment)
1 parent fbc379b commit 8e0f883

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/librustc_trans/mir/mod.rs

+12-10
Original file line numberDiff line numberDiff line change
@@ -583,16 +583,18 @@ fn arg_local_refs<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
583583
alloca: env_ptr,
584584
address_operations: &ops
585585
};
586-
declare_local(
587-
bcx,
588-
&mircx.debug_context,
589-
decl.debug_name,
590-
ty,
591-
scope,
592-
variable_access,
593-
VariableKind::CapturedVariable,
594-
DUMMY_SP
595-
);
586+
if false {
587+
declare_local(
588+
bcx,
589+
&mircx.debug_context,
590+
decl.debug_name,
591+
ty,
592+
scope,
593+
variable_access,
594+
VariableKind::CapturedVariable,
595+
DUMMY_SP
596+
);
597+
}
596598
}
597599
});
598600
LocalRef::Lvalue(LvalueRef::new_sized(llval, LvalueTy::from_ty(arg_ty),

0 commit comments

Comments
 (0)