[hip] Generate assertion message in assertion.

Change-Id: Ie66f6563e8728fd0e21cf22dcc6619e4a0e5c28d
This commit is contained in:
Michael LIAO
2020-04-16 17:18:13 -04:00
parent 8d63204887
commit 2c1933e0f3
@@ -1076,6 +1076,8 @@ void __assert_fail(const char * __assertion,
unsigned int __line,
const char *__function)
{
printf("%s:%u: %s: Device-side assertion `%s' failed.\n", __file, __line,
__function, __assertion);
// Ignore all the args for now.
__builtin_trap();
}