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

RustWrapper: adapt to APInt API changes in LLVM 15 #97840

Merged
merged 1 commit into from
Jun 8, 2022

Commits on Jun 7, 2022

  1. RustWrapper: adapt to APInt API changes in LLVM 15

    In https://reviews.llvm.org/D125556 upstream changed sext() and zext()
    to allow some no-op cases, which previously required use of the *OrSelf()
    methods, which I assume is what was going on here. The *OrSelf() methods
    got removed in https://reviews.llvm.org/D125559 after two weeks of
    deprecation because they came with some bonus (probably-undesired)
    behavior. Since the behavior of sext() and zext() changed slightly, I
    kept the old *OrSelf() calls in LLVM 14 and earlier, and only use the
    new version in LLVM 15.
    
    r? @nikic
    durin42 committed Jun 7, 2022
    Configuration menu
    Copy the full SHA
    1c26dd0 View commit details
    Browse the repository at this point in the history