Make an assert message more verbose.

This commit is contained in:
Dan Gohman
2018-05-25 08:53:52 -07:00
parent 6b88cd44a8
commit 09fb914823

View File

@@ -163,7 +163,7 @@ pub fn legalize_abi_value(have: Type, arg: &AbiParam) -> ValueConversion {
Ordering::Equal => { Ordering::Equal => {
// This must be an integer vector that is split and then extended. // This must be an integer vector that is split and then extended.
debug_assert!(arg.value_type.is_int()); debug_assert!(arg.value_type.is_int());
debug_assert!(have.is_vector()); debug_assert!(have.is_vector(), "expected vector type, got {}", have);
ValueConversion::VectorSplit ValueConversion::VectorSplit
} }
// We have more bits than the argument. // We have more bits than the argument.