llvm.org GIT mirror llvm / c0b76e3
Make sure Format is always initialized. Should fix the msan bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273679 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 3 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
293293 if ((ec = I->getError()))
294294 return;
295295 child_iterator E = child_end();
296
297 // This is at least a valid empty archive. Since an empty archive is the
298 // same in all formats, just claim it to be gnu to make sure Format is
299 // initialized.
300 Format = K_GNU;
296301
297302 if (I == E) {
298303 ec = std::error_code();