summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-20 15:55:24 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-20 15:55:24 +0000
commit9c3ff1986bcbefa0a6ae7996188968fcd4e1e81d (patch)
tree43dccb85073797333e2c09ca3283464e1e205aa3 /llvm/lib/IR/Verifier.cpp
parent562670383715f313fb6e6192e1620622e739de4b (diff)
downloadbcm5719-llvm-9c3ff1986bcbefa0a6ae7996188968fcd4e1e81d.tar.gz
bcm5719-llvm-9c3ff1986bcbefa0a6ae7996188968fcd4e1e81d.zip
IR: Use default member initialization in Verifier, NFC
llvm-svn: 266883
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 083d385f110..b5ef242fce0 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -83,13 +83,12 @@ static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(true));
namespace {
struct VerifierSupport {
raw_ostream &OS;
- const Module *M;
+ const Module *M = nullptr;
- /// \brief Track the brokenness of the module while recursively visiting.
- bool Broken;
+ /// Track the brokenness of the module while recursively visiting.
+ bool Broken = false;
- explicit VerifierSupport(raw_ostream &OS)
- : OS(OS), M(nullptr), Broken(false) {}
+ explicit VerifierSupport(raw_ostream &OS) : OS(OS) {}
private:
template <class NodeTy> void Write(const ilist_iterator<NodeTy> &I) {
OpenPOWER on IntegriCloud