1
Fork 0

Allow loading the SMIR for constants and statics

This commit is contained in:
Oli Scherer 2023-09-11 08:14:39 +00:00
parent e39976ff89
commit c2e790044c
2 changed files with 7 additions and 1 deletions

View file

@ -84,7 +84,7 @@ impl<'tcx> Context for Tables<'tcx> {
fn mir_body(&mut self, item: stable_mir::DefId) -> stable_mir::mir::Body {
let def_id = self[item];
let mir = self.tcx.optimized_mir(def_id);
let mir = self.tcx.instance_mir(ty::InstanceDef::Item(def_id));
stable_mir::mir::Body {
blocks: mir
.basic_blocks