Skip to content

Commit c7d7e6b

Browse files
Address a comment.
1 parent 9fbdc60 commit c7d7e6b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3311,7 +3311,7 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
33113311

33123312
// Compute our new liveout set, then exit early if it hasn't changed despite
33133313
// the contribution of our successor.
3314-
SetVector<Value *> LiveOut = Data.LiveOut[BB];
3314+
SetVector<Value *> &LiveOut = Data.LiveOut[BB];
33153315
const auto OldLiveOutSize = LiveOut.size();
33163316
for (BasicBlock *Succ : successors(BB)) {
33173317
assert(Data.LiveIn.count(Succ));
@@ -3324,10 +3324,9 @@ static void computeLiveInValues(DominatorTree &DT, Function &F,
33243324
// hasn't changed.
33253325
continue;
33263326
}
3327-
Data.LiveOut[BB] = LiveOut;
33283327

33293328
// Apply the effects of this basic block
3330-
SetVector<Value *> LiveTmp = std::move(LiveOut);
3329+
SetVector<Value *> LiveTmp = LiveOut;
33313330
LiveTmp.set_union(Data.LiveSet[BB]);
33323331
LiveTmp.set_subtract(Data.KillSet[BB]);
33333332

0 commit comments

Comments
 (0)