diff options
author | Martin Storsjö <martin@martin.st> | 2019-12-18 23:58:51 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2019-12-19 12:14:08 +0200 |
commit | 29d8c27c65289d1ed370861ff75f309a689a22cb (patch) | |
tree | 69b709f133125019e57cb64f264c2de77a42cd5d /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 200cce345dcf114a1b1012bc9c68adef6c99a595 (diff) | |
download | llvm-29d8c27c65289d1ed370861ff75f309a689a22cb.zip llvm-29d8c27c65289d1ed370861ff75f309a689a22cb.tar.gz llvm-29d8c27c65289d1ed370861ff75f309a689a22cb.tar.bz2 |
[LLD] [COFF] Fix reporting duplicate errors for absolute symbols
Previously this caused crashes in the reportDuplicate method.
A DefinedAbsolute doesn't have any InputFile attached to it, so we
can't report the file for the original symbol.
We could add an InputFile argument to SymbolTable::addAbsolute
only for the sake of error reporting, but even then it'd be assymetrical,
only pointing out the file containing the new conflicting definition,
not the original one.
Differential Revision: https://reviews.llvm.org/D71679
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions