Zero-initialize members of the CpuHashInfoTy structure for AsmParser
authorAndrew Kaylor <andrew.kaylor@intel.com>
Thu, 21 Apr 2016 20:09:35 +0000 (20:09 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Thu, 21 Apr 2016 20:09:35 +0000 (20:09 +0000)
llvm-svn: 267042

llvm/lib/MC/MCParser/AsmParser.cpp

index 43f7295..7da00e8 100644 (file)
@@ -156,9 +156,9 @@ private:
   /// The values from the last parsed cpp hash file line comment if any.
   struct CppHashInfoTy {
     StringRef Filename;
-    int64_t LineNumber;
+    int64_t LineNumber = 0;
     SMLoc Loc;
-    unsigned Buf;
+    unsigned Buf = 0;
   };
   CppHashInfoTy CppHashInfo;