Skip to content

Commit 522a375

Browse files
committed
[X86] collectConcatOps - assert that no ops were collected on failure
Ensures we can use collectConcatOps in cases where we don't want to rely on the return code alone
1 parent 2ddf0ca commit 522a375

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4330,6 +4330,7 @@ static bool collectConcatOps(SDNode *N, SmallVectorImpl<SDValue> &Ops,
43304330
}
43314331
}
43324332

4333+
assert(Ops.empty() && "Expected an empty ops vector");
43334334
return false;
43344335
}
43354336

0 commit comments

Comments
 (0)