diff options
| author | bors <bors@rust-lang.org> | 2020-04-28 05:01:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-04-28 05:01:27 +0000 |
| commit | fb5615a4771ea3d54256f969dc84d2dfd38d812c (patch) | |
| tree | a02609df0f068818972925187e7e5c3ce61cdf96 /src/librustc_codegen_llvm | |
| parent | 6db2094c909309ab1c25a571d6111825b49c822c (diff) | |
| parent | 1349272a6e0f923da21b81414ad2a92f2cbbeda9 (diff) | |
| download | rust-fb5615a4771ea3d54256f969dc84d2dfd38d812c.tar.gz rust-fb5615a4771ea3d54256f969dc84d2dfd38d812c.zip | |
Auto merge of #71292 - marmeladema:queries-local-def-id, r=eddyb
Convert more queries to use `LocalDefId` This PR is based on commits in https://github.com/rust-lang/rust/pull/71215 and should partially solve #70853
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/mod.rs | 2 |
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; } } |
