diff options
Diffstat (limited to 'src/passes')
-rw-r--r-- | src/passes/Print.cpp | 4 | ||||
-rw-r--r-- | src/passes/RemoveUnusedModuleElements.cpp | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index f51bccf27..fef4ac01d 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -2056,7 +2056,7 @@ struct PrintSExpression : public OverriddenVisitor<PrintSExpression> { o << "(event "; printName(curr->name, o); o << maybeSpace << "(attr " << curr->attribute << ')' << maybeSpace; - o << ParamType(Type(curr->params)); + o << ParamType(curr->sig.params); o << "))"; o << maybeNewLine; } @@ -2066,7 +2066,7 @@ struct PrintSExpression : public OverriddenVisitor<PrintSExpression> { printMedium(o, "event "); printName(curr->name, o); o << maybeSpace << "(attr " << curr->attribute << ')' << maybeSpace; - o << ParamType(Type(curr->params)); + o << ParamType(curr->sig.params); o << ")" << maybeNewLine; } void printTableHeader(Table* curr) { diff --git a/src/passes/RemoveUnusedModuleElements.cpp b/src/passes/RemoveUnusedModuleElements.cpp index 806545adf..20ce284f7 100644 --- a/src/passes/RemoveUnusedModuleElements.cpp +++ b/src/passes/RemoveUnusedModuleElements.cpp @@ -301,9 +301,6 @@ struct RemoveUnusedModuleElements : public Pass { for (auto* call : analyzer.indirectCalls) { call->fullType = canonicalize(call->fullType); } - for (auto* event : analyzer.events) { - event->type = canonicalize(event->type); - } // remove no-longer used types module->functionTypes.erase( std::remove_if(module->functionTypes.begin(), |