summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell-interface.h')
-rw-r--r--src/shell-interface.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shell-interface.h b/src/shell-interface.h
index 66608c37c..0c81680f5 100644
--- a/src/shell-interface.h
+++ b/src/shell-interface.h
@@ -233,7 +233,6 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
}
Literal tableLoad(Name tableName, Address addr) override {
-
auto it = tables.find(tableName);
if (it == tables.end()) {
trap("tableGet on non-existing table");
@@ -241,7 +240,7 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface {
auto& table = it->second;
if (addr >= table.size()) {
- trap("tableGet overflow");
+ trap("out of bounds table access");
}
return table[addr];