Skip to content

Commit

Permalink
Fix new linting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Korobeynikov <[email protected]>
  • Loading branch information
asl committed Sep 2, 2024
1 parent 64b4b8b commit f362104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontends/p4/typeChecking/typeCheckDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ bool TypeInferenceBase::checkAbstractMethods(const IR::Declaration_Instance *ins
if (m->isAbstract) {
auto [it, inserted] = virt.emplace(m->name, m);
if (!inserted)
P4::error(ErrorType::ERR_DUPLICATE, "%1%: duplicated name (%2% is previous instance)",
m->name, it->second);
P4::error(ErrorType::ERR_DUPLICATE,
"%1%: duplicated name (%2% is previous instance)", m->name, it->second);
}
}
if (virt.size() == 0 && inst->initializer == nullptr) return true;
Expand Down

0 comments on commit f362104

Please sign in to comment.