Skip to content

Commit 1bcc815

Browse files
author
git apple-llvm automerger
committed
Merge commit 'ee6afeb72ef2' from llvm.org/main into next
2 parents e04962d + ee6afeb commit 1bcc815

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Sema/SemaModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,8 @@ bool ExposureChecker::isTULocal(const NamedDecl *D) {
12231223
// [basic.link]p15.5
12241224
// - a specialization of a template whose (possibly instantiated) declaration
12251225
// is an exposure.
1226-
if (checkExposure(PrimaryTemplate, /*Diag=*/false))
1226+
if (ExposureSet.count(PrimaryTemplate) ||
1227+
checkExposure(PrimaryTemplate, /*Diag=*/false))
12271228
return true;
12281229

12291230
// Avoid calling checkExposure again since it is expensive.

0 commit comments

Comments
 (0)