generate function exit cop with profiling / pragma debug 4. Expected by prizm.

This commit is contained in:
Kelvin Sherlock 2017-12-05 21:07:10 -05:00
parent bfb929f4a7
commit dbfa542fba

View File

@ -5061,8 +5061,8 @@ procedure GenTree {op: icptr};
if namePushed then
GenCall(2);
{generate an exit code for the debugger's benefit}
if debugFlag then
{generate an exit code for the debugger/profiler's benefit}
if debugFlag or profileFlag then
GenNative(m_cop, immediate, 4, nil, 0);
{if anything needs to be removed from the stack, move the return val}