]> granicus.if.org Git - llvm/commitdiff
[Hexagon] Fix uninitialized value caught with valgrind
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 2 May 2017 18:29:49 +0000 (18:29 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 2 May 2017 18:29:49 +0000 (18:29 +0000)
Patch by Colin LeMahieu.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301957 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonVLIWPacketizer.h

index 3a2d777c2749134c4bf6d3097a00e33abde7f84c..adb92b6dc8557c04e80d28ee9270b3e8eb15b3e9 100644 (file)
@@ -36,7 +36,7 @@ class HexagonPacketizerList : public VLIWPacketizerList {
 
   // Set to true if the packet contains an instruction that stalls with an
   // instruction from the previous packet.
-  bool PacketStalls;
+  bool PacketStalls = false;
 
 protected:
   /// \brief A handle to the branch probability pass.