Reset NextFnNum in MachineModuleInfo::initialize
authorRoman Tereshin <rtereshin@apple.com>
Tue, 11 Aug 2020 06:29:39 +0000 (23:29 -0700)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 19 Apr 2021 22:51:30 +0000 (15:51 -0700)
commit76b0ea7f2d5c935bc7975d6b77db20f947e13f9a
treee436af4aa6c5e37b585b1d29ccf50143ef5f3ba0
parent2218f5998b5b274f4c50d1a5fa2728a87594377e
Reset NextFnNum in MachineModuleInfo::initialize

In an env that reuses compiler instances for multiple compilations, this
omission results in non-deterministic assembly output (names of the
auto-generated labels) if the order or full set of Modules compiled
varies.

Differential Revision: https://reviews.llvm.org/D100797
llvm/lib/CodeGen/MachineModuleInfo.cpp