diff options
author | Volodymyr Sapsai <vsapsai@apple.com> | 2025-05-22 18:34:30 -0700 |
---|---|---|
committer | Volodymyr Sapsai <vsapsai@apple.com> | 2025-05-22 18:34:30 -0700 |
commit | 720014f70841f0284d21ef8100c406d6c864ac9c (patch) | |
tree | 1d98a5feeef7e7510941323f4dbf914af8fc99cd /clang/lib/Lex/ModuleMap.cpp | |
parent | 0635ef8240ffe493169fb353fb004df2fb20353b (diff) | |
download | llvm-720014f70841f0284d21ef8100c406d6c864ac9c.zip llvm-720014f70841f0284d21ef8100c406d6c864ac9c.tar.gz llvm-720014f70841f0284d21ef8100c406d6c864ac9c.tar.bz2 |
Revert "[Modules] Don't fail when an unused textual header is missing. (#138227)"
This reverts commit 64bb60a471a5ddc9c9bec413c65fdab730a1e4b0.
Revert to give more time affected parties to adjust to the change.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 4175959..e899e0c 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -310,10 +310,8 @@ void ModuleMap::resolveHeader(Module *Mod, } else if (Header.HasBuiltinHeader && !Header.Size && !Header.ModTime) { // There's a builtin header but no corresponding on-disk header. Assume // this was supposed to modularize the builtin header alone. - } else if ((Header.Kind == Module::HK_Excluded) || - (Header.Kind == Module::HK_Textual)) { - // Ignore excluded and textual header files as a module can be built with - // such headers missing. + } else if (Header.Kind == Module::HK_Excluded) { + // Ignore missing excluded header files. They're optional anyway. } else { // If we find a module that has a missing header, we mark this module as // unavailable and store the header directive for displaying diagnostics. |