[llvm] r301957 - [Hexagon] Fix uninitialized value caught with valgrind
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 11:29:50 PDT 2017
Author: kparzysz
Date: Tue May 2 13:29:49 2017
New Revision: 301957
URL: http://llvm.org/viewvc/llvm-project?rev=301957&view=rev
Log:
[Hexagon] Fix uninitialized value caught with valgrind
Patch by Colin LeMahieu.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.h
Modified: llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.h?rev=301957&r1=301956&r2=301957&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.h (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.h Tue May 2 13:29:49 2017
@@ -36,7 +36,7 @@ class HexagonPacketizerList : public VLI
// 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.
More information about the llvm-commits
mailing list