[llvm] [Scalar] Use std::move (NFC) (PR #136264)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 23:12:55 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/136264.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (+1-1)
``````````diff
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]);
``````````
</details>
https://github.com/llvm/llvm-project/pull/136264
More information about the llvm-commits
mailing list