rustc with LLVM 5 reports invalid DIExpression #47464
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a known problem from #43370, but I feel it deserves its own issue. When using rustc compiled with LLVM 5.0.1, compiling with debuginfo often prints "invalid expression" messages to stderr, and AFAICT affected functions don't get any debuginfo written at all. For example:
Previous analysis in #43370 tied it to this
declare_local
call, and @eddyb offered a possible solution in #43370 (comment).The text was updated successfully, but these errors were encountered: