1
Fork 0

Ensure valid local_data is set for custom mir building

MIR unsafety checking requires this to be valid
This commit is contained in:
Gary Guo 2022-12-01 23:41:45 +00:00
parent f03c2aef47
commit adf1717219
2 changed files with 7 additions and 1 deletions

View file

@ -487,6 +487,7 @@ fn construct_fn<'tcx>(
return custom::build_custom_mir(
tcx,
fn_def.did.to_def_id(),
fn_id,
thir,
expr,
arguments,