Initialize SIInsertWaits::ExpInstrTypesSeen in the pass constructor.

This value may be used uninitialized in SIInsertWaits::insertWait.
Found with MemorySanitizer.

llvm-svn: 187869
This commit is contained in:
Evgeniy Stepanov 2013-08-07 07:47:41 +00:00
parent 98277bc93f
commit bc8808ce4a
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ public:
SIInsertWaits(TargetMachine &tm) :
MachineFunctionPass(ID),
TII(0),
TRI(0) { }
TRI(0),
ExpInstrTypesSeen(0) { }
virtual bool runOnMachineFunction(MachineFunction &MF);