Skip to content

Commit

Permalink
Auto merge of #136575 - scottmcm:nsuw-math, r=nikic
Browse files Browse the repository at this point in the history
Set both `nuw` and `nsw` in slice size calculation

There's an old note in the code to do this, and now that [LLVM-C has an API for it](https://github.com/llvm/llvm-project/blob/f0b8ff12519270adcfef93410abff76ab073476a/llvm/include/llvm-c/Core.h#L4403-L4408), we might as well.  And it's been there since what looks like LLVM 17 llvm/llvm-project@de9b6aa so doesn't even need to be conditional.

(There's other places, like `RawVecInner` or `Layout`, that might want to do things like this too, but I'll leave those for a future PR.)
  • Loading branch information
bors committed Feb 14, 2025
2 parents 0af7bd7 + 892a0ee commit a0e5486
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit a0e5486

Please sign in to comment.