Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Budiu <mbudiu@vmware.com>
  • Loading branch information
Mihai Budiu committed Feb 14, 2023
1 parent 8a833ef commit f427a02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontends/p4/typeChecking/typeSubstitution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ void TypeVariableSubstitution::debugValidate() {
// Turn on only for debugging
for (auto v : binding) {
const IR::Type *subst = v.second;
TypeOccursVisitor occurs(v.first);
subst->apply(occurs);
BUG_CHECK(!occurs.occurs,
"'%1%' occurs in '%2%' which replaces it", v.first, v.second);
TypeOccursVisitor occurs(v.first);
subst->apply(occurs);
BUG_CHECK(!occurs.occurs,
"'%1%' occurs in '%2%' which replaces it", v.first, v.second);
}
#endif
}
Expand Down

0 comments on commit f427a02

Please sign in to comment.