Skip to content

Commit 5d6cb6f

Browse files
[mlir] Simplify code with MapVector::operator[] (NFC) (llvm#113407)
1 parent bc3c83f commit 5d6cb6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ std::unique_ptr<MatcherNode> &getOrCreateChild(SwitchNode *node,
818818
auto it = predicate->patternToAnswer.find(pattern);
819819
assert(it != predicate->patternToAnswer.end() &&
820820
"expected pattern to exist in predicate");
821-
return node->getChildren().insert({it->second, nullptr}).first->second;
821+
return node->getChildren()[it->second];
822822
}
823823

824824
/// Build the matcher CFG by "pushing" patterns through by sorted predicate

0 commit comments

Comments
 (0)