]> granicus.if.org Git - llvm/commitdiff
Use a default constructor. (NFC)
authorAdrian Prantl <aprantl@apple.com>
Tue, 8 Nov 2016 20:48:38 +0000 (20:48 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 8 Nov 2016 20:48:38 +0000 (20:48 +0000)
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

index c6a2661dbf125cf6972f6af1b1ec7ffef795e229..be2d7b96f90a69c89d01b88ad8535928c8b3e0a1 100644 (file)
@@ -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; }