Use a function to access the Hir map to be able to turn it into a query later
This commit is contained in:
parent
367e783e6f
commit
a70babed03
160 changed files with 1220 additions and 1210 deletions
|
@ -300,7 +300,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
|
|||
|
||||
let mut flags = DIFlags::FlagPrototyped;
|
||||
|
||||
let local_id = self.tcx().hir.as_local_node_id(def_id);
|
||||
let local_id = self.tcx().hir().as_local_node_id(def_id);
|
||||
if let Some((id, _, _)) = *self.sess().entry_fn.borrow() {
|
||||
if local_id == Some(id) {
|
||||
flags |= DIFlags::FlagMainSubprogram;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue