diff --git a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp index 5de5dd894f84e..15ec7e17130de 100644 --- a/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp +++ b/llvm/utils/TableGen/Common/GlobalISel/GlobalISelMatchTable.cpp @@ -842,7 +842,7 @@ Error RuleMatcher::defineComplexSubOperand(StringRef SymbolicName, ComplexSubOperands[SymbolicName] = std::tuple(ComplexPattern, RendererID, SubOperandID); - ComplexSubOperandsParentName[SymbolicName] = ParentName; + ComplexSubOperandsParentName[SymbolicName] = std::move(ParentName); return Error::success(); }