diff --git a/llvm/tools/obj2yaml/Error.h b/llvm/tools/obj2yaml/Error.h index 315d7f4bf49f26..8985338c92952a 100644 --- a/llvm/tools/obj2yaml/Error.h +++ b/llvm/tools/obj2yaml/Error.h @@ -41,7 +41,7 @@ class Obj2YamlError : public ErrorInfo { private: std::string ErrMsg; - obj2yaml_error Code; + obj2yaml_error Code = obj2yaml_error::success; }; } // namespace llvm