[llvm] r286292 - Use a default constructor. (NFC)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 12:48:39 PST 2016
Author: adrian
Date: Tue Nov 8 14:48:38 2016
New Revision: 286292
URL: http://llvm.org/viewvc/llvm-project?rev=286292&view=rev
Log:
Use a default constructor. (NFC)
Thanks to David Blaikie for suggesting this.
Modified:
llvm/trunk/include/llvm/IR/DebugInfoMetadata.h
Modified: llvm/trunk/include/llvm/IR/DebugInfoMetadata.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DebugInfoMetadata.h?rev=286292&r1=286291&r2=286292&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DebugInfoMetadata.h (original)
+++ llvm/trunk/include/llvm/IR/DebugInfoMetadata.h Tue Nov 8 14:48:38 2016
@@ -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; }
More information about the llvm-commits
mailing list