Skip to content

Commit 2637788

Browse files
committed
Reinitialize hostsptr and devsptr at the IM_BOS.
These values are carried across ILMs, but not across ILM blocks, so the old values should be cleared out.
1 parent fdd2edf commit 2637788

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/flang2/flang2exe/exp_ftn.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3605,6 +3605,8 @@ exp_misc(ILM_OP opc, ILM *ilmp, int curilm)
36053605
}
36063606
}
36073607
mkrtemp_init();
3608+
hostsptr = 0;
3609+
devsptr = 0;
36083610
break;
36093611

36103612
case IM_ENTRY:

0 commit comments

Comments
 (0)