[llvm] r187869 - Initialize SIInsertWaits::ExpInstrTypesSeen in the pass constructor.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Aug 7 00:47:42 PDT 2013


Author: eugenis
Date: Wed Aug  7 02:47:41 2013
New Revision: 187869

URL: http://llvm.org/viewvc/llvm-project?rev=187869&view=rev
Log:
Initialize SIInsertWaits::ExpInstrTypesSeen in the pass constructor.

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


Modified:
    llvm/trunk/lib/Target/R600/SIInsertWaits.cpp

Modified: llvm/trunk/lib/Target/R600/SIInsertWaits.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInsertWaits.cpp?rev=187869&r1=187868&r2=187869&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInsertWaits.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIInsertWaits.cpp Wed Aug  7 02:47:41 2013
@@ -98,7 +98,8 @@ public:
   SIInsertWaits(TargetMachine &tm) :
     MachineFunctionPass(ID),
     TII(0),
-    TRI(0) { }
+    TRI(0),
+    ExpInstrTypesSeen(0) { }
 
   virtual bool runOnMachineFunction(MachineFunction &MF);
 





More information about the llvm-commits mailing list