From 42c5a0bcbca7fbba3ea25d31c66abfa042a481d5 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286292 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/DebugInfoMetadata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.50.1