summaryrefslogtreecommitdiff
path: root/src/passes/Souperify.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Souperify.cpp')
-rw-r--r--src/passes/Souperify.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/passes/Souperify.cpp b/src/passes/Souperify.cpp
index 90fd64777..913a58e81 100644
--- a/src/passes/Souperify.cpp
+++ b/src/passes/Souperify.cpp
@@ -86,10 +86,9 @@ struct UseFinder {
LocalGraph& localGraph,
std::vector<Expression*>& ret) {
// If already handled, nothing to do here.
- if (seenSets.count(set)) {
+ if (!seenSets.emplace(set).second) {
return;
}
- seenSets.insert(set);
// Find all the uses of that set.
auto& gets = localGraph.setInfluences[set];
if (debug() >= 2) {