diff options
Diffstat (limited to 'src/ir/memory-utils.h')
-rw-r--r-- | src/ir/memory-utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/memory-utils.h b/src/ir/memory-utils.h index 39914a95a..c6b2fad18 100644 --- a/src/ir/memory-utils.h +++ b/src/ir/memory-utils.h @@ -120,7 +120,6 @@ inline bool ensureLimitedSegments(Module& module) { // check if we have too many dynamic data segments, which we can do nothing // about - auto num = numConstant + numDynamic; if (numDynamic + 1 >= WebLimitations::MaxDataSegments) { return false; } @@ -128,7 +127,8 @@ inline bool ensureLimitedSegments(Module& module) { // we'll merge constant segments if we must if (numConstant + numDynamic >= WebLimitations::MaxDataSegments) { numConstant = WebLimitations::MaxDataSegments - numDynamic - 1; - num = numConstant + numDynamic; + auto num = numConstant + numDynamic; + WASM_UNUSED(num); assert(num == WebLimitations::MaxDataSegments - 1); } |