For new archive member we only need to store the full path.
We were storing both the path and the file name, which was redundant and easy to get confused up with. llvm-svn: 242347
This commit is contained in:
@@ -135,8 +135,7 @@ int llvm::libDriverMain(llvm::ArrayRef<const char*> ArgsArr) {
|
||||
llvm::errs() << Arg->getValue() << ": no such file or directory\n";
|
||||
return 1;
|
||||
}
|
||||
Members.emplace_back(Saver.save(*Path),
|
||||
llvm::sys::path::filename(Arg->getValue()));
|
||||
Members.emplace_back(Saver.save(*Path));
|
||||
}
|
||||
|
||||
std::pair<StringRef, std::error_code> Result =
|
||||
|
||||
Reference in New Issue
Block a user