mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
Do not fail an assertion on a broken archive
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68a9d3eb38
commit
67c3821ea0
@ -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