From: Rafael Espindola Date: Sat, 24 Jun 2017 00:18:15 +0000 (+0000) Subject: Fix use of uninitialized value. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eec1b83586409aaeaea7c26c04ecfc3a322cd70;p=llvm Fix use of uninitialized value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306188 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCValue.h b/include/llvm/MC/MCValue.h index ead08fd90ca..aa1eaf022c5 100644 --- a/include/llvm/MC/MCValue.h +++ b/include/llvm/MC/MCValue.h @@ -42,7 +42,7 @@ class MCValue { int64_t Cst; uint32_t RefKind; public: - + MCValue() : SymA(nullptr), SymB(nullptr), Cst(0), RefKind(0) {} int64_t getConstant() const { return Cst; } const MCSymbolRefExpr *getSymA() const { return SymA; } const MCSymbolRefExpr *getSymB() const { return SymB; }