From 13eee8e131eee705064aaa77e0b375b1d5b06934 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 24 Sep 2023 12:32:10 +0100 Subject: [PATCH] ws --- ir/instr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/instr.cpp b/ir/instr.cpp index edd1c3552..475c58828 100644 --- a/ir/instr.cpp +++ b/ir/instr.cpp @@ -2094,7 +2094,7 @@ uint64_t FnCall::getAlign() const { return max(align, attrs.has(FnAttrs::Align) ? attrs.align : - (attrs.isAlloc() ? heap_block_alignment : 1)); + (attrs.isAlloc() ? heap_block_alignment : 1)); } uint64_t FnCall::getMaxAccessSize() const { @@ -3628,7 +3628,7 @@ optional GEP::getExactOffset() const { return {}; if (auto n = getInt(*v)) { - off = add_saturate(off, abs((int64_t)mul * *n)); + off += abs((int64_t)mul * *n)); continue; } return {};