From: Adrian Prantl Date: Tue, 8 Nov 2016 20:48:38 +0000 (+0000) Subject: Use a default constructor. (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42c5a0bcbca7fbba3ea25d31c66abfa042a481d5;p=llvm Use a default constructor. (NFC) Thanks to David Blaikie for suggesting this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286292 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/DebugInfoMetadata.h b/include/llvm/IR/DebugInfoMetadata.h index c6a2661dbf1..be2d7b96f90 100644 --- a/include/llvm/IR/DebugInfoMetadata.h +++ b/include/llvm/IR/DebugInfoMetadata.h @@ -1953,10 +1953,10 @@ public: /// TODO: Store arguments directly and change \a DIExpression to store a /// range of these. class ExprOperand { - const uint64_t *Op; + const uint64_t *Op = nullptr; public: - ExprOperand() : Op(nullptr) {}; + ExprOperand() = default; explicit ExprOperand(const uint64_t *Op) : Op(Op) {} const uint64_t *get() const { return Op; }