summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r--src/wasm-s-parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h
index e0db65224..9d33504ac 100644
--- a/src/wasm-s-parser.h
+++ b/src/wasm-s-parser.h
@@ -1115,7 +1115,7 @@ private:
} else {
// offset, break to nth outside label
uint64_t offset = std::stoll(s.c_str(), nullptr, 0);
- if (offset >= labelStack.size()) throw ParseException("total memory must be <= 4GB", s.line, s.col);
+ if (offset >= labelStack.size()) throw ParseException("invalid label", s.line, s.col);
return labelStack[labelStack.size() - 1 - offset];
}
}