Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let LLVM 5 add DW_OP_deref to indirect args itself #47688

Merged
merged 1 commit into from
Jan 26, 2018

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Jan 23, 2018

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
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
Copy link
Contributor

bors commented Jan 25, 2018

📌 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

5 participants