Skip to content

Commit 6fddcd0

Browse files
committed
array ref
1 parent 39b27b9 commit 6fddcd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/SDPatternMatch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define LLVM_CODEGEN_SDPATTERNMATCH_H
1515

1616
#include "llvm/ADT/APInt.h"
17+
#include "llvm/ADT/ArrayRef.h"
1718
#include "llvm/ADT/STLExtras.h"
1819
#include "llvm/ADT/SmallBitVector.h"
1920
#include "llvm/CodeGen/SelectionDAG.h"
@@ -1175,9 +1176,8 @@ template <typename... PatternTs> struct ReassociatableOpc_match {
11751176
}
11761177
}
11771178

1178-
template <size_t N>
11791179
[[nodiscard]] inline bool
1180-
reassociatableMatchHelper(const std::array<SmallBitVector, N> &Matches,
1180+
reassociatableMatchHelper(const ArrayRef<SmallBitVector> Matches,
11811181
SmallBitVector &Used, size_t Curr = 0) {
11821182
if (Curr == Matches.size())
11831183
return true;

0 commit comments

Comments
 (0)