We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9dde9a commit cc47d4cCopy full SHA for cc47d4c
llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
@@ -3508,7 +3508,7 @@ void CodeGenDAGPatterns::FindPatternInputsAndOutputs(
3508
Val->getDef()->isSubClassOf("PointerLikeRegClass")) {
3509
if (Dest->getName().empty())
3510
I.error("set destination must have a name!");
3511
- if (!InstResults.try_emplace(Dest->getName(), Dest).second)
+ if (!InstResults.insert_or_assign(Dest->getName(), Dest).second)
3512
I.error("cannot set '" + Dest->getName() + "' multiple times");
3513
} else if (Val->getDef()->isSubClassOf("Register")) {
3514
InstImpResults.push_back(Val->getDef());
0 commit comments