Skip to content

Commit 969477a

Browse files
committed
[send-non-sendable] Eliminate another pass by value of a std::vector.
1 parent cd7213e commit 969477a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILOptimizer/Mandatory/SendNonSendable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ class PartitionOpTranslator {
672672
// this is handled as assigning to each possible arg being branched to the
673673
// merge of all values that could be passed to it from this basic block.
674674
std::vector<PartitionOp> translateSILPhi(
675-
std::vector<std::pair<std::vector<SILValue>, SILBasicBlock*>> branches) {
675+
const std::vector<std::pair<std::vector<SILValue>, SILBasicBlock *>>
676+
&branches) {
676677
SmallFrozenMultiMap<SILValue, SILValue, 8> argSources;
677678
for (const auto &[args, dest] : branches) {
678679
assert(args.size() >= dest->getNumArguments());

0 commit comments

Comments
 (0)