aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
diff options
context:
space:
mode:
authorAdam Czachorowski <adamcz@google.com>2020-08-11 18:48:22 +0200
committerAdam Czachorowski <adamcz@google.com>2020-08-21 13:11:21 +0200
commitb4889353207aefd6f2641cef0301f78838c5b52e (patch)
treeb1a6298d8a14a51c038f73acc7f68dfe985bf327 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
parentf5643dc3dce201a5c9b43cb68370bdbb4254495a (diff)
downloadllvm-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