forked from OSchip/llvm-project
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
This commit is contained in:
parent
2218f5998b
commit
76b0ea7f2d
|
@ -196,6 +196,7 @@ void MMIAddrLabelMapCallbackPtr::allUsesReplacedWith(Value *V2) {
|
||||||
void MachineModuleInfo::initialize() {
|
void MachineModuleInfo::initialize() {
|
||||||
ObjFileMMI = nullptr;
|
ObjFileMMI = nullptr;
|
||||||
CurCallSite = 0;
|
CurCallSite = 0;
|
||||||
|
NextFnNum = 0;
|
||||||
UsesMSVCFloatingPoint = UsesMorestackAddr = false;
|
UsesMSVCFloatingPoint = UsesMorestackAddr = false;
|
||||||
HasSplitStack = HasNosplitStack = false;
|
HasSplitStack = HasNosplitStack = false;
|
||||||
AddrLabelSymbols = nullptr;
|
AddrLabelSymbols = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue