diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/wasm-ctor-eval.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/wasm-ctor-eval.cpp b/src/tools/wasm-ctor-eval.cpp index 91128471c..5e9874ccc 100644 --- a/src/tools/wasm-ctor-eval.cpp +++ b/src/tools/wasm-ctor-eval.cpp @@ -408,9 +408,7 @@ private: // TODO: handle unaligned too, see shell-interface template<typename T> T* getMemory(Address address, Name memoryName) { auto it = memories.find(memoryName); - if (it == memories.end()) { - Fatal() << "memory not found: " << memoryName; - } + assert(it != memories.end()); auto& memory = it->second; // resize the memory buffer as needed. auto max = address + sizeof(T); |