mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-03 05:41:42 +00:00
Initialize SIInsertWaits::ExpInstrTypesSeen in the pass constructor.
This value may be used uninitialized in SIInsertWaits::insertWait. Found with MemorySanitizer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e52c6164d
commit
8f3562bc6b
@ -98,7 +98,8 @@ public:
|
|||||||
SIInsertWaits(TargetMachine &tm) :
|
SIInsertWaits(TargetMachine &tm) :
|
||||||
MachineFunctionPass(ID),
|
MachineFunctionPass(ID),
|
||||||
TII(0),
|
TII(0),
|
||||||
TRI(0) { }
|
TRI(0),
|
||||||
|
ExpInstrTypesSeen(0) { }
|
||||||
|
|
||||||
virtual bool runOnMachineFunction(MachineFunction &MF);
|
virtual bool runOnMachineFunction(MachineFunction &MF);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user