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

PR for llvm/llvm-project#57469 #141

Merged
merged 1 commit into from
Sep 12, 2022
Merged

PR for llvm/llvm-project#57469 #141

merged 1 commit into from
Sep 12, 2022

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented Sep 1, 2022

…ume calls (PR57469)

DwarfEhPrepare inserts calls to _Unwind_Resume into landing pads.
If _Unwind_Resume happens to be defined in the same module and
debug info is used, then this leads to a verifier error:

  inlinable function call in a function with debug info must
    have a !dbg location
  call void @_Unwind_Resume(ptr %exn.obj) #0

Fix this by assigning a dummy location to the call. (As this
happens in the backend, inlining is not actually relevant here.)

Fixes llvm/llvm-project#57469.

Differential Revision: https://reviews.llvm.org/D133095

(cherry picked from commit 5134bd4)
@llvmbot
Copy link
Member Author

llvmbot commented Sep 1, 2022

@adrian-prantl What do you think about merging this PR to the release branch?

@tru
Copy link
Contributor

tru commented Sep 7, 2022

@adrian-prantl @nikic - should this be merged to 15.0.1?

@nikic
Copy link
Contributor

nikic commented Sep 9, 2022

Rust has been using this patch for a while now, so I think it's good to merge.

@tru tru merged commit 1a5c5e0 into release/15.x Sep 12, 2022
@tru tru deleted the llvm-issue57469 branch September 12, 2022 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verifier error if unwinding used in same module as _Unwind_Resume definition with debug info
3 participants