Add arg_count field to Body in Stable MIR
This field allows SMIR consumers to identify which locals correspond to argument locals. It simply exposes the arg_count field from the MIR representation.
This commit is contained in:
parent
cf226e93dc
commit
e4c41b07f0
2 changed files with 11 additions and 0 deletions
|
@ -308,6 +308,7 @@ impl<'tcx> Stable<'tcx> for mir::Body<'tcx> {
|
|||
span: decl.source_info.span.stable(tables),
|
||||
})
|
||||
.collect(),
|
||||
arg_count: self.arg_count,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue