mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
Unbreak all archive reading operations introduced by the last patch which
always exited the program with exit code 1 in these cases, regardless of whether an error occurred or not. llvm-svn: 18966
This commit is contained in:
parent
4faf86336e
commit
01430a34a4
@ -679,10 +679,11 @@ int main(int argc, char **argv) {
|
||||
} else {
|
||||
std::string Error;
|
||||
TheArchive = Archive::OpenAndLoad(ArchivePath, &Error);
|
||||
if (TheArchive == 0)
|
||||
if (TheArchive == 0) {
|
||||
std::cerr << argv[0] << ": error loading '" << ArchivePath << "': "
|
||||
<< Error << "!\n";
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure we're not fooling ourselves.
|
||||
|
Loading…
Reference in New Issue
Block a user