Skip to content

Commit

Permalink
TMP: Ignore a declare_local in mir trans
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 25, 2017
1 parent fbc379b commit 8e0f883
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/librustc_trans/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,18 @@ fn arg_local_refs<'a, 'tcx>(bcx: &Builder<'a, 'tcx>,
alloca: env_ptr,
address_operations: &ops
};
declare_local(
bcx,
&mircx.debug_context,
decl.debug_name,
ty,
scope,
variable_access,
VariableKind::CapturedVariable,
DUMMY_SP
);
if false {
declare_local(
bcx,
&mircx.debug_context,
decl.debug_name,
ty,
scope,
variable_access,
VariableKind::CapturedVariable,
DUMMY_SP
);
}
}
});
LocalRef::Lvalue(LvalueRef::new_sized(llval, LvalueTy::from_ty(arg_ty),
Expand Down

0 comments on commit 8e0f883

Please sign in to comment.