Obj2YamlError - fix uninitialized variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 8 Nov 2019 16:22:12 +0000 (16:22 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 8 Nov 2019 16:26:20 +0000 (16:26 +0000)
llvm/tools/obj2yaml/Error.h

index 315d7f4bf49f263daa5aa2eaab5e61314aa86408..8985338c92952aa15ca25373e0cd4e023599db62 100644 (file)
@@ -41,7 +41,7 @@ public:
 
 private:
   std::string ErrMsg;
-  obj2yaml_error Code;
+  obj2yaml_error Code = obj2yaml_error::success;
 };
 
 } // namespace llvm