From 2d935d9668e84d12bd24b950179e8b9c44307cc1 Mon Sep 17 00:00:00 2001 From: Robin Sommer Date: Fri, 8 Nov 2024 12:54:14 +0100 Subject: [PATCH] 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. --- src/spicy/spicyz/driver.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/spicy/spicyz/driver.cc b/src/spicy/spicyz/driver.cc index 75ffd1f6fa..99dec308fa 100644 --- a/src/spicy/spicyz/driver.cc +++ b/src/spicy/spicyz/driver.cc @@ -52,9 +52,6 @@ struct VisitorTypes : public spicy::visitor::PreOrder { module == hilti::ID("zeek_rt") ) return; - assert(! n->type()->type()->typeID() || - n->type()->type()->typeID() == hilti::ID(module, n->id())); // ensure consistent IDs - types.emplace_back(TypeInfo{ .id = hilti::ID(module, n->id()), .type = n->type(),