Closed
Description
STR:
- Create a dummy crate:
cargo new hello ; cd hello
- Build with profiling and LTO enabled:
CARGO_INCREMENTAL=0 cargo +nightly rustc -- -Zprofile -Cdebuginfo=2 -Clto -Cembed-bitcode=yes
This fails with the following error message:
DICompileUnit not listed in llvm.dbg.cu
!34 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !13, producer: "clang LLVM (rustc version 1.58.0-nightly (bd41e09da 2021-10-18))", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !35)
LLVM ERROR: Broken module found, compilation aborted!
Bisect says it is a regression from #89041.