[llvm] 66f63d1 - Obj2YamlError - fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 08:51:31 PST 2019
Author: Simon Pilgrim
Date: 2019-11-08T16:26:20Z
New Revision: 66f63d18e1d08dd7364f2c267264b7103673cde6
URL: https://github.com/llvm/llvm-project/commit/66f63d18e1d08dd7364f2c267264b7103673cde6
DIFF: https://github.com/llvm/llvm-project/commit/66f63d18e1d08dd7364f2c267264b7103673cde6.diff
LOG: Obj2YamlError - fix uninitialized variable warning. NFCI.
Added:
Modified:
llvm/tools/obj2yaml/Error.h
Removed:
################################################################################
diff --git a/llvm/tools/obj2yaml/Error.h b/llvm/tools/obj2yaml/Error.h
index 315d7f4bf49f..8985338c9295 100644
--- a/llvm/tools/obj2yaml/Error.h
+++ b/llvm/tools/obj2yaml/Error.h
@@ -41,7 +41,7 @@ class Obj2YamlError : public ErrorInfo<Obj2YamlError> {
private:
std::string ErrMsg;
- obj2yaml_error Code;
+ obj2yaml_error Code = obj2yaml_error::success;
};
} // namespace llvm
More information about the llvm-commits
mailing list