================
@@ -6824,7 +6824,7 @@ bool InterpretOffsetOf(InterpState &S, CodePtr OpPC,
const OffsetOfExpr *E,
CurrentType = AT->getElementType();
CharUnits ElementSize =
S.getASTContext().getTypeSizeInChars(CurrentType);
int64_t ElemSize = ElementSize.getQuantity();
- if (Index != 0 && ElemSize > llvm::maxIntN(64) / Index) {
+ if ((Index != 0) && (ElemSize > (llvm::maxIntN(64) / Index))) {
----------------
marlus wrote:
Done, kept parentheses only around the division: llvm::maxIntN(64) / Index .
https://github.com/llvm/llvm-project/pull/207808
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits