aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorAbhishek Kaushik <abhishek.kaushik@intel.com>2025-09-18 02:10:41 -0700
committerGitHub <noreply@github.com>2025-09-18 14:40:41 +0530
commit98ebb64a1639fa20e2cfa44bc796dfc28db1f691 (patch)
treedebaf1ac487455b6d1ac0b4bc525c736de749ae2 /llvm/lib/CodeGen/MIRPrinter.cpp
parent18630b0633bd550ad6675e155f42365ae42eb919 (diff)
downloadllvm-98ebb64a1639fa20e2cfa44bc796dfc28db1f691.zip
llvm-98ebb64a1639fa20e2cfa44bc796dfc28db1f691.tar.gz
llvm-98ebb64a1639fa20e2cfa44bc796dfc28db1f691.tar.bz2
[NFC][MIRPrinter] Use `std::move` to avoid copy (#157832)
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index 7cc9192..91a21a4 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));
}
}