summaryrefslogtreecommitdiff
path: root/src/parse/token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/token.cpp')
-rw-r--r--src/parse/token.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/token.cpp b/src/parse/token.cpp
index 670be81d..37515a2e 100644
--- a/src/parse/token.cpp
+++ b/src/parse/token.cpp
@@ -450,6 +450,7 @@ void operator%(::Deserialiser& s, enum eCoreType& t) {
::std::string n;
s.item(n);
t = coretype_fromstring(n);
+ ASSERT_BUG(Span(), t != CORETYPE_INVAL, "Invalid coretype '" << n << "'");
}
SERIALISE_TYPE(Token::, "Token", {
s % m_type;