mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 02:14:23 +00:00
Do not fail an assertion on a broken archive
llvm-svn: 18959
This commit is contained in:
parent
3a260f9757
commit
5c60a89777
@ -677,7 +677,12 @@ int main(int argc, char **argv) {
|
||||
std::cerr << argv[0] << ": creating " << ArchivePath.toString() << "\n";
|
||||
TheArchive = Archive::CreateEmpty(ArchivePath);
|
||||
} else {
|
||||
TheArchive = Archive::OpenAndLoad(ArchivePath);
|
||||
std::string Error;
|
||||
TheArchive = Archive::OpenAndLoad(ArchivePath, &Error);
|
||||
if (TheArchive == 0)
|
||||
std::cerr << argv[0] << ": error loading '" << ArchivePath << "': "
|
||||
<< Error << "!\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Make sure we're not fooling ourselves.
|
||||
|
Loading…
x
Reference in New Issue
Block a user