[llvm] r266883 - IR: Use default member initialization in Verifier, NFC

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 08:55:24 PDT 2016


Author: dexonsmith
Date: Wed Apr 20 10:55:24 2016
New Revision: 266883

URL: http://llvm.org/viewvc/llvm-project?rev=266883&view=rev
Log:
IR: Use default member initialization in Verifier, NFC

Modified:
    llvm/trunk/lib/IR/Verifier.cpp

Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=266883&r1=266882&r2=266883&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Wed Apr 20 10:55:24 2016
@@ -83,13 +83,12 @@ static cl::opt<bool> VerifyDebugInfo("ve
 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) {




More information about the llvm-commits mailing list