[clang] [clang][Interp] Consider bit width in toAPSInt() (PR #71646)

2023-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes In `Interp.h`, when a add/sub/mul fails, we call this code and expect to get an `APSInt` back that can handle more than the current bitwidth of the type. --- Full diff: https://github.com/llvm/llvm-project/p

[clang] [clang][Interp] Consider bit width in toAPSInt() (PR #71646)

2023-11-08 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/71646 In `Interp.h`, when a add/sub/mul fails, we call this code and expect to get an `APSInt` back that can handle more than the current bitwidth of the type. >From a5a7c82862990475630a21d6aabb319acc6a80b2 Mon Sep 1