Skip to content

Commit 48e00d0

Browse files
committed
[Wasm] Add missing insist.
1 parent 96fda57 commit 48e00d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/WasmUtil.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,6 +2082,7 @@ void Buffer<IsGlobal>::teardown()
20822082
M_insist(bool(base_address_), "must call `setup()` before");
20832083
M_insist(bool(size_), "must call `setup()` before");
20842084
M_insist(not layout_.is_finite() == bool(capacity_), "must call `setup()` before");
2085+
M_insist(not layout_.is_finite() == bool(first_iteration_), "must call `setup()` before");
20852086

20862087
if constexpr (not IsGlobal) { // free memory of local buffer when user calls teardown method
20872088
if (not layout_.is_finite()) {

0 commit comments

Comments
 (0)