IR: Use default member initialization in Verifier, NFC

llvm-svn: 266883
This commit is contained in:
Duncan P. N. Exon Smith 2016-04-20 15:55:24 +00:00
parent 5626703837
commit 9c3ff1986b
1 changed files with 4 additions and 5 deletions
llvm/lib/IR

View File

@ -83,13 +83,12 @@ static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(true));
namespace { namespace {
struct VerifierSupport { struct VerifierSupport {
raw_ostream &OS; raw_ostream &OS;
const Module *M; const Module *M = nullptr;
/// \brief Track the brokenness of the module while recursively visiting. /// Track the brokenness of the module while recursively visiting.
bool Broken; bool Broken = false;
explicit VerifierSupport(raw_ostream &OS) explicit VerifierSupport(raw_ostream &OS) : OS(OS) {}
: OS(OS), M(nullptr), Broken(false) {}
private: private:
template <class NodeTy> void Write(const ilist_iterator<NodeTy> &I) { template <class NodeTy> void Write(const ilist_iterator<NodeTy> &I) {