From 93a2acf7bc4378734cb28f0b89d0e47f5cf4c62d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 25 Aug 2006 05:28:17 +0000 Subject: [PATCH] Fix a bug caused by change in the interface of Archive::writeToDisk. llvm-svn: 29869 --- llvm/tools/llvm-ar/llvm-ar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index 55a60a331f43..7f13bf26775c 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -511,7 +511,7 @@ doDelete(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable(); @@ -566,7 +566,7 @@ doMove(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable(); @@ -591,7 +591,7 @@ doQuickAppend(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable(); @@ -688,7 +688,7 @@ doReplaceOrInsert(std::string* ErrMsg) { } // We're done editting, reconstruct the archive. - if (!TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) + if (TheArchive->writeToDisk(SymTable,TruncateNames,Compression,ErrMsg)) return true; if (ReallyVerbose) printSymbolTable();