diff options
author | Adam Czachorowski <adamcz@google.com> | 2020-08-11 18:48:22 +0200 |
---|---|---|
committer | Adam Czachorowski <adamcz@google.com> | 2020-08-21 13:11:21 +0200 |
commit | b4889353207aefd6f2641cef0301f78838c5b52e (patch) | |
tree | b1a6298d8a14a51c038f73acc7f68dfe985bf327 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | f5643dc3dce201a5c9b43cb68370bdbb4254495a (diff) | |
download | llvm-b4889353207aefd6f2641cef0301f78838c5b52e.zip llvm-b4889353207aefd6f2641cef0301f78838c5b52e.tar.gz llvm-b4889353207aefd6f2641cef0301f78838c5b52e.tar.bz2 |
[clangd] Discard diagnostics from another SourceManager.
This can happen when building implicit modules, as demonstrated in test.
The CompilerInstance uses the same StoredDiags, but different
SourceManager. This used to crash clangd when it tried to relocate the
diagnostic to the main file, which, according to SourceManager from the
diagnostic, is a fake <module-includes> file.
Differential Revision: https://reviews.llvm.org/D85753
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions