about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
diff options
context:
space:
mode:
authormarmeladema <xademax@gmail.com>2020-04-18 16:34:41 +0100
committermarmeladema <xademax@gmail.com>2020-04-27 23:58:11 +0100
commitc9f6ffc3b031decd04174fe9a2b4a2dffd5827a1 (patch)
tree8df7437b70763adc7b1c5e3482c4a0a74e4c6125 /src/librustc_codegen_llvm/debuginfo
parent3877f540006ddb690c687947e299a07c19e98aed (diff)
downloadrust-c9f6ffc3b031decd04174fe9a2b4a2dffd5827a1.tar.gz
rust-c9f6ffc3b031decd04174fe9a2b4a2dffd5827a1.zip
Change return type of `entry_fn` query to return a `LocalDefId`
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/mod.rs b/src/librustc_codegen_llvm/debuginfo/mod.rs
index 37f502c56a6..92e210cdd8c 100644
--- a/src/librustc_codegen_llvm/debuginfo/mod.rs
+++ b/src/librustc_codegen_llvm/debuginfo/mod.rs
@@ -290,7 +290,7 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
             spflags |= DISPFlags::SPFlagOptimized;
         }
         if let Some((id, _)) = self.tcx.entry_fn(LOCAL_CRATE) {
-            if id == def_id {
+            if id.to_def_id() == def_id {
                 spflags |= DISPFlags::SPFlagMainSubprogram;
             }
         }