]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #97840 - durin42:llvm-15-apint, r=nikic
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 7 Jun 2022 21:55:28 +0000 (23:55 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Jun 2022 21:55:28 +0000 (23:55 +0200)
commit5870156d855564703353c48ed1d307dade31247c
tree89e5b6844fb8c4b89d5cb1aee7507169c6a9fb16
parent796c466cea55221d354e6f02d8da18880ce933b0
parent1c26dd0db4bb8b0613c19c14f7fcbb0d4fa22726
Rollup merge of #97840 - durin42:llvm-15-apint, r=nikic

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`