Skip to content

Commit e487356

Browse files
committed
[SDAG] improve assert text for getSetCC type assumptions; NFC
Having identical text for these 2 conditions made it harder to find the root problem for issue llvm#58994.
1 parent daf1a1f commit e487356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/SelectionDAG.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,9 +1119,9 @@ class SelectionDAG {
11191119
ISD::CondCode Cond, SDValue Chain = SDValue(),
11201120
bool IsSignaling = false) {
11211121
assert(LHS.getValueType().isVector() == RHS.getValueType().isVector() &&
1122-
"Cannot compare scalars to vectors");
1122+
"Vector/scalar operand type mismatch for setcc");
11231123
assert(LHS.getValueType().isVector() == VT.isVector() &&
1124-
"Cannot compare scalars to vectors");
1124+
"Vector/scalar result type mismatch for setcc");
11251125
assert(Cond != ISD::SETCC_INVALID &&
11261126
"Cannot create a setCC of an invalid node.");
11271127
if (Chain)

0 commit comments

Comments
 (0)