From 8f3562bc6b914154532bbe592503662ca314ebb8 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Wed, 7 Aug 2013 07:47:41 +0000 Subject: [PATCH] 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 --- lib/Target/R600/SIInsertWaits.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/R600/SIInsertWaits.cpp b/lib/Target/R600/SIInsertWaits.cpp index d31da4585ff..ba202e3cbf6 100644 --- a/lib/Target/R600/SIInsertWaits.cpp +++ b/lib/Target/R600/SIInsertWaits.cpp @@ -98,7 +98,8 @@ public: SIInsertWaits(TargetMachine &tm) : MachineFunctionPass(ID), TII(0), - TRI(0) { } + TRI(0), + ExpInstrTypesSeen(0) { } virtual bool runOnMachineFunction(MachineFunction &MF); -- 2.34.1