Spicy:: Remove unhelpful assertion.

In cases of a malformed event definition, this could fire instead of a
more helpful error message coming later.

Closes #3988.
This commit is contained in:
Robin Sommer 2024-11-08 12:54:14 +01:00
parent e4dbba20a4
commit 2d935d9668
No known key found for this signature in database
GPG key ID: D8187293B3FFE5D0

View file

@ -52,9 +52,6 @@ struct VisitorTypes : public spicy::visitor::PreOrder {
module == hilti::ID("zeek_rt") ) module == hilti::ID("zeek_rt") )
return; return;
assert(! n->type()->type()->typeID() ||
n->type()->type()->typeID() == hilti::ID(module, n->id())); // ensure consistent IDs
types.emplace_back(TypeInfo{ types.emplace_back(TypeInfo{
.id = hilti::ID(module, n->id()), .id = hilti::ID(module, n->id()),
.type = n->type(), .type = n->type(),