[prange] Reword dispatch error message

After reading the ICE for the PR, it's obvious the error message is
rather cryptic.  This makes it less so.

gcc/ChangeLog:

	* range-op.cc (range_op_handler::discriminator_fail): Reword error
	message.
This commit is contained in:
Aldy Hernandez 2024-05-08 22:50:22 +02:00
parent baf1a67795
commit be3df704ce

View File

@ -197,7 +197,8 @@ range_op_handler::discriminator_fail (const vrange &r1,
gcc_checking_assert (r1.m_discriminator < sizeof (name) - 1);
gcc_checking_assert (r2.m_discriminator < sizeof (name) - 1);
gcc_checking_assert (r3.m_discriminator < sizeof (name) - 1);
fprintf (stderr, "DISCRIMINATOR FAIL. Dispatch ====> RO_%c%c%c <====\n",
fprintf (stderr,
"Unsupported operand combination in dispatch: RO_%c%c%c\n",
name[r1.m_discriminator],
name[r2.m_discriminator],
name[r3.m_discriminator]);