mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Make sure Format is always initialized.
Should fix the msan bots. llvm-svn: 273679
This commit is contained in:
parent
26ab5ea842
commit
dd711d49cc
@ -295,6 +295,11 @@ Archive::Archive(MemoryBufferRef Source, std::error_code &ec)
|
||||
return;
|
||||
child_iterator E = child_end();
|
||||
|
||||
// This is at least a valid empty archive. Since an empty archive is the
|
||||
// same in all formats, just claim it to be gnu to make sure Format is
|
||||
// initialized.
|
||||
Format = K_GNU;
|
||||
|
||||
if (I == E) {
|
||||
ec = std::error_code();
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user