[llvm-branch-commits] [llvm] [DA] Introduce OverflowSafeSignedAPInt to prevent potential overflow (PR #171991)

Sjoerd Meijer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 15 06:00:54 PST 2025


sjoerdmeijer wrote:

I am not sure this this belongs in DA. APInt has several routines that deal determine overflow, e.g. sadd_ov, ssub_ov, etc. So, as a very minimum, if we need a convenience wrapper, we should first use those routines?


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


More information about the llvm-branch-commits mailing list