From 72845a5f4e8921e5f55258a147288376520cb9ef Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 8 Nov 2016 20:48:38 +0000 Subject: [PATCH] Use a default constructor. (NFC) Thanks to David Blaikie for suggesting this. llvm-svn: 286292 --- llvm/include/llvm/IR/DebugInfoMetadata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h index c6a2661..be2d7b9 100644 --- a/llvm/include/llvm/IR/DebugInfoMetadata.h +++ b/llvm/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; } -- 2.7.4