[llvm] [Scalar] Use std::move (NFC) (PR #136264)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 23:12:20 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136264
None
>From 9fbdc60f24cbc244964fd35f38adfa98ac0963e4 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Thu, 17 Apr 2025 23:03:39 -0700
Subject: [PATCH] [Scalar] Use std::move (NFC)
---
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 7eee0283e20e6..c6778cc8cc459 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -3327,7 +3327,7 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
Data.LiveOut[BB] = LiveOut;
// Apply the effects of this basic block
- SetVector<Value *> LiveTmp = LiveOut;
+ SetVector<Value *> LiveTmp = std::move(LiveOut);
LiveTmp.set_union(Data.LiveSet[BB]);
LiveTmp.set_subtract(Data.KillSet[BB]);
More information about the llvm-commits
mailing list