Skip to content

Commit

Permalink
fix: deduplicate inherited members
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Oct 30, 2024
1 parent 3f24987 commit 91c6871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/Metadata/Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class TrancheBuilder
std::vector<SymbolID>& M,
const Info& I)
{
M.emplace_back(I.id);
if(std::ranges::find(M, I.id) == M.end())
M.emplace_back(I.id);
}

template<typename ListTy>
Expand Down

0 comments on commit 91c6871

Please sign in to comment.