diff options
| author | Abhishek Kaushik <abhishek.kaushik@intel.com> | 2025-09-18 02:10:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 14:40:41 +0530 |
| commit | 98ebb64a1639fa20e2cfa44bc796dfc28db1f691 (patch) | |
| tree | debaf1ac487455b6d1ac0b4bc525c736de749ae2 /llvm/lib/CodeGen/MIRPrinter.cpp | |
| parent | 18630b0633bd550ad6675e155f42365ae42eb919 (diff) | |
[NFC][MIRPrinter] Use `std::move` to avoid copy (#157832)
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 7cc91925793a..91a21a4adf4e 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)); } } |
