From: Simon Pilgrim Date: Sun, 18 Aug 2019 13:29:12 +0000 (+0000) Subject: [MC] MCFixup - Fix cppcheck + MSVC analyzer uninitialized member variable warnings... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c81cf445a3132cf48fbe8f75f0314cbd346d87ab;p=llvm [MC] MCFixup - Fix cppcheck + MSVC analyzer uninitialized member variable warnings. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCFixup.h b/include/llvm/MC/MCFixup.h index c9be762d61d..33d659bdc58 100644 --- a/include/llvm/MC/MCFixup.h +++ b/include/llvm/MC/MCFixup.h @@ -78,14 +78,14 @@ class MCFixup { /// The value to put into the fixup location. The exact interpretation of the /// expression is target dependent, usually it will be one of the operands to /// an instruction or an assembler directive. - const MCExpr *Value; + const MCExpr *Value = nullptr; /// The byte index of start of the relocation inside the MCFragment. - uint32_t Offset; + uint32_t Offset = 0; /// The target dependent kind of fixup item this is. The kind is used to /// determine how the operand value should be encoded into the instruction. - unsigned Kind; + unsigned Kind = 0; /// The source location which gave rise to the fixup, if any. SMLoc Loc;