aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-04-05 22:02:56 +0000
committerDimitry Andric <dim@FreeBSD.org>2024-04-06 20:14:34 +0000
commit439352ac8257c8419cb4a662abb7f260f31f9932 (patch)
tree237d14d3439cac4b76d8a396fa37bc7470622e00 /contrib/llvm-project/clang/lib/Basic/Module.cpp
parent49a6e426df84eff1ae54905a02f66910a6a177d3 (diff)
parent05834cae71b93c867532aee91cb7cab176920c01 (diff)
Diffstat (limited to 'contrib/llvm-project/clang/lib/Basic/Module.cpp')
-rw-r--r--contrib/llvm-project/clang/lib/Basic/Module.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/llvm-project/clang/lib/Basic/Module.cpp b/contrib/llvm-project/clang/lib/Basic/Module.cpp
index 925217431d4d..0dac8748a98a 100644
--- a/contrib/llvm-project/clang/lib/Basic/Module.cpp
+++ b/contrib/llvm-project/clang/lib/Basic/Module.cpp
@@ -301,10 +301,9 @@ bool Module::directlyUses(const Module *Requested) {
if (Requested->isSubModuleOf(Use))
return true;
- // Anyone is allowed to use our builtin stdarg.h and stddef.h and their
- // accompanying modules.
- if (Requested->getTopLevelModuleName() == "_Builtin_stdarg" ||
- Requested->getTopLevelModuleName() == "_Builtin_stddef")
+ // Anyone is allowed to use our builtin stddef.h and its accompanying modules.
+ if (Requested->fullModuleNameIs({"_Builtin_stddef", "max_align_t"}) ||
+ Requested->fullModuleNameIs({"_Builtin_stddef_wint_t"}))
return true;
if (NoUndeclaredIncludes)