Skip to content

Commit c6fc309

Browse files
committed
Quick update:
- Consistent plurality in comment - errorOrWarn, since an output file may still producible
1 parent a750de6 commit c6fc309

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lld/ELF/Driver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2992,8 +2992,8 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
29922992
reportDuplicate(*d.sym, d.file, d.section, d.value);
29932993

29942994
// ELF dependent libraries may have introduced new input files after LTO has
2995-
// completed. This is an error if the file hadn't already been parsed, since
2996-
// it's no longer legal to change the symbol table by parsing it.
2995+
// completed. This is an error if the files haven't already been parsed, since
2996+
// it's no longer legal to change the symbol table by parsing them.
29972997
auto newInputFiles = ArrayRef(ctx.driver.files).slice(numInputFilesBeforeLTO);
29982998
if (!newInputFiles.empty()) {
29992999
DenseSet<StringRef> oldFilenames;
@@ -3002,7 +3002,7 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &args) {
30023002
oldFilenames.insert(f->getName());
30033003
for (InputFile *newFile : newInputFiles)
30043004
if (!oldFilenames.contains(newFile->getName()))
3005-
error("input file '" + newFile->getName() + "' added after LTO");
3005+
errorOrWarn("input file '" + newFile->getName() + "' added after LTO");
30063006
}
30073007

30083008
// Handle --exclude-libs again because lto.tmp may reference additional

0 commit comments

Comments
 (0)