Skip to content

Commit e4e48e8

Browse files
committed
[pa-combiner] Modernize some appending code to use a range instead of iterators. NFC.
1 parent 0d88ff1 commit e4e48e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Utils/PartialApplyCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ SILInstruction *PartialApplyCombiner::combine() {
322322
assert(use->get()->getType().castTo<SILFunctionType>() ==
323323
escapingCalleeTy);
324324
(void)escapingCalleeTy;
325-
uses.append(cfi->getUses().begin(), cfi->getUses().end());
325+
llvm::copy(cfi->getUses(), std::back_inserter(uses));
326326
continue;
327327
}
328328

0 commit comments

Comments
 (0)