We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e847c47 commit a17b977Copy full SHA for a17b977
clang/lib/Sema/SemaOverload.cpp
@@ -6941,8 +6941,7 @@ void Sema::AddOverloadCandidate(
6941
/// Inline functions with internal linkage are a common pattern in headers
6942
/// to avoid ODR issues.
6943
const bool IsInlineFunctionInGMF =
6944
- Function->getOwningModule() &&
6945
- Function->getOwningModule()->isGlobalModule() &&
+ Function->isFromGlobalModule()
6946
(IsImplicitlyInstantiated || Function->isInlined());
6947
6948
if (ND->getFormalLinkage() == Linkage::Internal && !IsInlineFunctionInGMF) {
0 commit comments