diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2024-09-14 11:11:00 +0200 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2024-09-14 22:25:08 +0200 |
commit | e39205654dc11c50bd117e8ccac243a641ebd71f (patch) | |
tree | ae39582c4275f668d3d436be0cc6dacb19fa41ba /clang/lib/Serialization/ASTWriter.cpp | |
parent | f0c5caa8144307ec59fbafeed1ba37bb3603b00f (diff) | |
download | llvm-e39205654dc11c50bd117e8ccac243a641ebd71f.zip llvm-e39205654dc11c50bd117e8ccac243a641ebd71f.tar.gz llvm-e39205654dc11c50bd117e8ccac243a641ebd71f.tar.bz2 |
Reapply "Reapply "[clang] Extend diagnose_if to accept more detailed warning information (#70976)" (#108453)"
This reverts commit e1bd9740faa62c11cc785a7b70ec1ad17e286bd1.
Fixes incorrect use of the `DiagnosticsEngine` in the clangd tests.
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index c628949..008bf57 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -3219,7 +3219,7 @@ void ASTWriter::WritePragmaDiagnosticMappings(const DiagnosticsEngine &Diag, // Skip default mappings. We have a mapping for every diagnostic ever // emitted, regardless of whether it was customized. if (!I.second.isPragma() && - I.second == DiagnosticIDs::getDefaultMapping(I.first)) + I.second == Diag.getDiagnosticIDs()->getDefaultMapping(I.first)) continue; Mappings.push_back(I); } |