[clang] [llvm] [LLVM][IRBuilder] Use NUW arithmetic for Create{ElementCount,TypeSize}. (PR #143532)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 07:01:31 PDT 2025


https://github.com/david-arm approved this pull request.

LGTM! I'm happy with this approach - we shouldn't really be calling CreateElementCount and CreateTypeSize with types that cannot fit the requested element count/type size, since that feels more like a bug with the caller.

https://github.com/llvm/llvm-project/pull/143532


More information about the llvm-commits mailing list