Skip to content

Commit 66f63d1

Browse files
committed
Obj2YamlError - fix uninitialized variable warning. NFCI.
1 parent 24d507f commit 66f63d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/obj2yaml/Error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Obj2YamlError : public ErrorInfo<Obj2YamlError> {
4141

4242
private:
4343
std::string ErrMsg;
44-
obj2yaml_error Code;
44+
obj2yaml_error Code = obj2yaml_error::success;
4545
};
4646

4747
} // namespace llvm

0 commit comments

Comments
 (0)