aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2024-09-26 11:39:33 +0200
committerKadir Cetinkaya <kadircet@google.com>2024-09-26 12:16:07 +0200
commit2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15 (patch)
tree53215da0dd93f76bca6b7008fcae3fe809f41588 /clang/lib/Serialization/ASTWriter.cpp
parent056a3f4673a4f88d89e9bf00614355f671014ca5 (diff)
downloadllvm-2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15.zip
llvm-2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15.tar.gz
llvm-2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15.tar.bz2
Revert "[clang] Extend diagnose_if to accept more detailed warning information (#70976)"
This reverts commit e39205654dc11c50bd117e8ccac243a641ebd71f. There are further discussions in https://github.com/llvm/llvm-project/pull/70976, happening for past two weeks. Since there were no responses for couple weeks now, reverting until author is back.
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index f326e3c..2237273 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -3220,7 +3220,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 == Diag.getDiagnosticIDs()->getDefaultMapping(I.first))
+ I.second == DiagnosticIDs::getDefaultMapping(I.first))
continue;
Mappings.push_back(I);
}