[clang] Cap IntRange::Width to the expression's type size (PR #145356)

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 11:17:17 PDT 2025


ahatanak wrote:

Note that the range exceeds the underlying type's size in this case because `1 << i` is treated as logically positive (see https://github.com/llvm/llvm-project/pull/126846#issuecomment-2936836277).

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


More information about the cfe-commits mailing list