diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 7cc91925793a1..91a21a4adf4eb 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -627,7 +627,7 @@ convertSRPoints(ModuleSlotTracker &MST, StrOS << printMBBReference(*MBB); Entry.Point = StrOS.str().str(); Str.clear(); - YamlSRPoints.push_back(Entry); + YamlSRPoints.push_back(std::move(Entry)); } }