Attempt to fix uninitialized SDAG persistent ids detected by MSan
authorReid Kleckner <rnk@google.com>
Wed, 18 Nov 2015 01:21:06 +0000 (01:21 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 18 Nov 2015 01:21:06 +0000 (01:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253422 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h

index 8dfdd90..83464a6 100644 (file)
@@ -215,7 +215,7 @@ class SelectionDAG {
   /// Tracks dbg_value information through SDISel.
   SDDbgInfo *DbgInfo;
 
-  uint16_t NextPersistentId;
+  uint16_t NextPersistentId = 0;
 
 public:
   /// Clients of various APIs that cause global effects on