[llvm] r267042 - Zero-initialize members of the CpuHashInfoTy structure for AsmParser
Andrew Kaylor via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 13:09:35 PDT 2016
Author: akaylor
Date: Thu Apr 21 15:09:35 2016
New Revision: 267042
URL: http://llvm.org/viewvc/llvm-project?rev=267042&view=rev
Log:
Zero-initialize members of the CpuHashInfoTy structure for AsmParser
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=267042&r1=267041&r2=267042&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Thu Apr 21 15:09:35 2016
@@ -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;
More information about the llvm-commits
mailing list