From: Spyridoula Gravani Date: Fri, 16 Jun 2017 18:55:01 +0000 (+0000) Subject: [DWARF] Replaced mem-initializers with non-static data member initializers in DWARFVe... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a2fcf3b58e39b76b48e08e792c0a2adba41d417;p=llvm [DWARF] Replaced mem-initializers with non-static data member initializers in DWARFVerifier class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305570 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DebugInfo/DWARF/DWARFVerifier.h b/include/llvm/DebugInfo/DWARF/DWARFVerifier.h index 18ce43bef0c..9eb5c45faba 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFVerifier.h +++ b/include/llvm/DebugInfo/DWARF/DWARFVerifier.h @@ -30,9 +30,9 @@ class DWARFVerifier { /// can verify each reference points to a valid DIE and not an offset that /// lies between to valid DIEs. std::map> ReferenceToDIEOffsets; - uint32_t NumDebugInfoErrors; - uint32_t NumDebugLineErrors; - uint32_t NumAppleNamesErrors; + uint32_t NumDebugInfoErrors = 0; + uint32_t NumDebugLineErrors = 0; + uint32_t NumAppleNamesErrors = 0; /// Verifies the attribute's DWARF attribute and its value. /// @@ -77,8 +77,7 @@ class DWARFVerifier { public: DWARFVerifier(raw_ostream &S, DWARFContext &D) - : OS(S), DCtx(D), NumDebugInfoErrors(0), NumDebugLineErrors(0), - NumAppleNamesErrors(0) {} + : OS(S), DCtx(D) {} /// Verify the information in the .debug_info section. /// /// Any errors are reported to the stream that was this object was