Skip to content

Commit

Permalink
Recognize nested TypeInference learners
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Jun 25, 2024
1 parent 9a4ef83 commit 0143b77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontends/p4/typeChecking/typeChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ TypeChecking::TypeChecking(ReferenceMap *refMap, TypeMap *typeMap, bool updateEx
bool TypeInference::learn(const IR::Node *node, Visitor *caller, const Visitor::Context *ctxt) {
auto *learner = clone();
learner->setCalledBy(caller);
learner->setName("TypeInference learner");
unsigned previous = ::errorCount();
(void)node->apply(*learner, ctxt);
unsigned errCount = ::errorCount();
Expand Down

0 comments on commit 0143b77

Please sign in to comment.