Skip to content

Commit 49044d0

Browse files
committed
[LexicalDestroyFolding] Used ArrayRef.
1 parent 93b3ffb commit 49044d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/SILOptimizer/Utils/LexicalDestroyFolding.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ class Rewriter final {
406406
/// possible)
407407
/// (2) hoist the end_borrow
408408
/// (3) delete the destroy_value
409-
void fold(Match, SmallVectorImpl<int> const &rewritableArgumentIndices);
409+
void fold(Match, ArrayRef<int> rewritableArgumentIndices);
410410

411411
// The move_value [lexical] instruction that was added during the run.
412412
//
@@ -503,8 +503,7 @@ bool Rewriter::createMove() {
503503
return true;
504504
}
505505

506-
void Rewriter::fold(Match candidate,
507-
SmallVectorImpl<int> const &rewritableArgumentIndices) {
506+
void Rewriter::fold(Match candidate, ArrayRef<int> rewritableArgumentIndices) {
508507
// First, rewrite the apply in terms of the move_value.
509508
unsigned argumentNumber = 0;
510509
for (auto index : rewritableArgumentIndices) {

0 commit comments

Comments
 (0)