Skip to content

Let LLVM 5 add DW_OP_deref to indirect args itself - #47688

Merged
bors merged 1 commit into
rust-lang:masterfrom
cuviper:llvm5-indirect-deref
Jan 26, 2018
Merged

Let LLVM 5 add DW_OP_deref to indirect args itself#47688
bors merged 1 commit into
rust-lang:masterfrom
cuviper:llvm5-indirect-deref

Conversation

@cuviper

@cuviper cuviper commented Jan 23, 2018

Copy link
Copy Markdown
Member

We needed to manually added the DW_OP_deref ourselves in earlier LLVM,
but starting with D31439 in LLVM 5, it appears that LLVM will always
handle this itself. When we were still adding this manually, the
resulting .debug_loc had too many derefs, and this failed test
debuginfo/by-value-self-argument-in-trait-impl.rs.

Fixes #47611.
cc @alexcrichton
r? @michaelwoerister

We needed to manually added the `DW_OP_deref` ourselves in earlier LLVM,
but starting with [D31439] in LLVM 5, it appears that LLVM will always
handle this itself.  When we were still adding this manually, the
resulting `.debug_loc` had too many derefs, and this failed test
`debuginfo/by-value-self-argument-in-trait-impl.rs`.

[D31439]: https://reviews.llvm.org/D31439

Fixes rust-lang#47611.
cc @alexcrichton
r? @michaelwoerister
@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 24, 2018
@alexcrichton

Copy link
Copy Markdown
Member

Ah I think @michaelwoerister is on leave for a bit, so given the fact that this should pass tests before/after LLVM updates I'm going to r+. If this is in error though I'm sure we can find another solution that also passes all the tests everywhere!

@bors: r+

@bors

bors commented Jan 25, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 7eb7d45 has been approved by alexcrichton

@bors
bors merged commit 7eb7d45 into rust-lang:master Jan 26, 2018
@cuviper
cuviper deleted the llvm5-indirect-deref branch January 26, 2018 21:28
@workingjubilee workingjubilee added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LLVM 5 fails debuginfo/by-value-self-argument-in-trait-impl.rs

6 participants