[clang] [clang][Interp] Support AddOffset with 128bit offsets (PR #68679)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 10 11:27:13 PDT 2023
================
@@ -1437,7 +1437,7 @@ bool OffsetHelper(InterpState &S, CodePtr OpPC, const T &Offset,
return false;
};
- unsigned MaxOffset = MaxIndex - Ptr.getIndex();
+ T MaxOffset = T::from(MaxIndex - Ptr.getIndex(), Offset.bitWidth());
----------------
tbaederr wrote:
Dunno, We never compare `MaxIndex` with anything of type `T`. It's even only used twice and once is in the diagnostic output. The other one is line 1440 above.
https://github.com/llvm/llvm-project/pull/68679
More information about the cfe-commits
mailing list