summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-18 13:29:12 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-18 13:29:12 +0000
commit000dfdab2dfcac736ce7ccb01029c862b338b346 (patch)
tree2b720f00e02fbc88b760e5630d2f6bacc61e7c16 /llvm
parent9b957d332171d4daadf1906b18646f05366584d4 (diff)
downloadbcm5719-llvm-000dfdab2dfcac736ce7ccb01029c862b338b346.tar.gz
bcm5719-llvm-000dfdab2dfcac736ce7ccb01029c862b338b346.zip
[MC] MCFixup - Fix cppcheck + MSVC analyzer uninitialized member variable warnings. NFCI.
llvm-svn: 369208
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/MC/MCFixup.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/MC/MCFixup.h b/llvm/include/llvm/MC/MCFixup.h
index c9be762d61d..33d659bdc58 100644
--- a/llvm/include/llvm/MC/MCFixup.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud