Skip to content

Commit b0f3a61

Browse files
RKSimontomtor
authored andcommitted
[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 73d6be6 commit b0f3a61

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)