Skip to content

Commit cc47d4c

Browse files
Address comments.
1 parent b9dde9a commit cc47d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,7 @@ void CodeGenDAGPatterns::FindPatternInputsAndOutputs(
35083508
Val->getDef()->isSubClassOf("PointerLikeRegClass")) {
35093509
if (Dest->getName().empty())
35103510
I.error("set destination must have a name!");
3511-
if (!InstResults.try_emplace(Dest->getName(), Dest).second)
3511+
if (!InstResults.insert_or_assign(Dest->getName(), Dest).second)
35123512
I.error("cannot set '" + Dest->getName() + "' multiple times");
35133513
} else if (Val->getDef()->isSubClassOf("Register")) {
35143514
InstImpResults.push_back(Val->getDef());

0 commit comments

Comments
 (0)