diff --git a/src/coreclr/jit/error.cpp b/src/coreclr/jit/error.cpp index dfb5a859b43008..b5af43193faa57 100644 --- a/src/coreclr/jit/error.cpp +++ b/src/coreclr/jit/error.cpp @@ -280,8 +280,10 @@ extern "C" void __cdecl assertAbort(const char* why, const char* file, unsigned if (env->compiler) { phaseName = PhaseNames[env->compiler->mostRecentlyActivePhase]; - _snprintf_s(buff, BUFF_SIZE, _TRUNCATE, "Assertion failed '%s' in '%s' during '%s' (IL size %d)\n", why, - env->compiler->info.compFullName, phaseName, env->compiler->info.compILCodeSize); + _snprintf_s(buff, BUFF_SIZE, _TRUNCATE, + "Assertion failed '%s' in '%s' during '%s' (IL size %d; hash 0x%08x; %s)\n", why, + env->compiler->info.compFullName, phaseName, env->compiler->info.compILCodeSize, + env->compiler->info.compMethodHash(), env->compiler->compGetTieringName(/* short name */ true)); msg = buff; } printf(""); // null string means flush