Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Ensure that variant part discriminator is read by MetadataLoader #128

Conversation

tromey
Copy link

@tromey tromey commented Sep 21, 2018

https://reviews.llvm.org/D42082 introduced variant parts to debug info
in LLVM. Subsequent work on the Rust compiler has found a bug in that
patch; namely, there is a path in MetadataLoader that fails to restore
the discriminator.

This patch fixes the bug.

This was accepted by upstream LLVM here: https://reviews.llvm.org/D52340
It is needed for rust-lang/rust#54004

Summary:
https://reviews.llvm.org/D42082 introduced variant parts to debug info
in LLVM.  Subsequent work on the Rust compiler has found a bug in that
patch; namely, there is a path in MetadataLoader that fails to restore
the discriminator.

This patch fixes the bug.

This was accepted by upstream LLVM here: https://reviews.llvm.org/D52340
@alexcrichton alexcrichton merged commit 7051ead into rust-lang:rust-llvm-release-8-0-0-v1 Sep 21, 2018
@tromey tromey deleted the fix-discriminator-reading branch September 21, 2018 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants