Skip to content

Commit 39b27b9

Browse files
committed
curly braces
1 parent a8d1db3 commit 39b27b9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/include/llvm/CodeGen/SDPatternMatch.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,9 +1146,8 @@ template <typename... PatternTs> struct ReassociatableOpc_match {
11461146
bool match(const MatchContext &Ctx, SDValue N) {
11471147
SmallVector<SDValue> Leaves;
11481148
collectLeaves(N, Leaves);
1149-
if (Leaves.size() != std::tuple_size_v<std::tuple<PatternTs...>>) {
1149+
if (Leaves.size() != std::tuple_size_v<std::tuple<PatternTs...>>)
11501150
return false;
1151-
}
11521151

11531152
// Matches[I][J] == true iff sd_context_match(Leaves[I], Ctx,
11541153
// std::get<J>(Patterns)) == true
@@ -1169,9 +1168,8 @@ template <typename... PatternTs> struct ReassociatableOpc_match {
11691168

11701169
void collectLeaves(SDValue V, SmallVector<SDValue> &Leaves) {
11711170
if (V->getOpcode() == Opcode) {
1172-
for (size_t I = 0, N = V->getNumOperands(); I < N; I++) {
1171+
for (size_t I = 0, N = V->getNumOperands(); I < N; I++)
11731172
collectLeaves(V->getOperand(I), Leaves);
1174-
}
11751173
} else {
11761174
Leaves.emplace_back(V);
11771175
}

0 commit comments

Comments
 (0)