mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 08:29:43 +00:00
This doesn't need a object::Archive::child_iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
107eb74eed
commit
a16eb6190c
@ -466,7 +466,7 @@ enum InsertAction {
|
||||
};
|
||||
|
||||
static InsertAction computeInsertAction(ArchiveOperation Operation,
|
||||
object::Archive::child_iterator I,
|
||||
const object::Archive::Child &Member,
|
||||
StringRef Name,
|
||||
std::vector<StringRef>::iterator &Pos) {
|
||||
if (Operation == QuickAppend || Members.empty())
|
||||
@ -500,7 +500,7 @@ static InsertAction computeInsertAction(ArchiveOperation Operation,
|
||||
// operation.
|
||||
sys::fs::file_status Status;
|
||||
failIfError(sys::fs::status(*MI, Status), *MI);
|
||||
if (Status.getLastModificationTime() < I->getLastModified()) {
|
||||
if (Status.getLastModificationTime() < Member.getLastModified()) {
|
||||
if (PosName.empty())
|
||||
return IA_AddOldMember;
|
||||
return IA_MoveOldMember;
|
||||
|
Loading…
Reference in New Issue
Block a user