aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Serialization/GeneratePCH.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-30 13:42:26 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-04-30 14:43:57 +0800
commitec527b21bb4196355184aa95ef31aa561b8e8b7b (patch)
treeec9bd4a33131642196931d17f83fbd2d47fe8c7f /clang/lib/Serialization/GeneratePCH.cpp
parent4a84d8e4c28d873eacfce53f9fd902d67a08a859 (diff)
downloadllvm-ec527b21bb4196355184aa95ef31aa561b8e8b7b.zip
llvm-ec527b21bb4196355184aa95ef31aa561b8e8b7b.tar.gz
llvm-ec527b21bb4196355184aa95ef31aa561b8e8b7b.tar.bz2
[C++20] [Modules] Don't skip pragma diagnostic mappings
Close https://github.com/llvm/llvm-project/issues/75057 Previously, I thought the diagnostic mappings is not meaningful with modules incorrectly. And this problem get revealed by another change recently. So this patch tried to rever the previous "optimization" partially.
Diffstat (limited to 'clang/lib/Serialization/GeneratePCH.cpp')
-rw-r--r--clang/lib/Serialization/GeneratePCH.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/Serialization/GeneratePCH.cpp b/clang/lib/Serialization/GeneratePCH.cpp
index bed7439..a2ddbe46 100644
--- a/clang/lib/Serialization/GeneratePCH.cpp
+++ b/clang/lib/Serialization/GeneratePCH.cpp
@@ -117,7 +117,6 @@ void ReducedBMIGenerator::HandleTranslationUnit(ASTContext &Ctx) {
getPreprocessor().getHeaderSearchInfo().getHeaderSearchOpts();
HSOpts.ModulesSkipDiagnosticOptions = true;
HSOpts.ModulesSkipHeaderSearchPaths = true;
- HSOpts.ModulesSkipPragmaDiagnosticMappings = true;
PCHGenerator::HandleTranslationUnit(Ctx);