Skip to content

Commit a17b977

Browse files
jiixyjChuanqiXu9
andauthored
Update clang/lib/Sema/SemaOverload.cpp
Co-authored-by: Chuanqi Xu <[email protected]>
1 parent e847c47 commit a17b977

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaOverload.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6941,8 +6941,7 @@ void Sema::AddOverloadCandidate(
69416941
/// Inline functions with internal linkage are a common pattern in headers
69426942
/// to avoid ODR issues.
69436943
const bool IsInlineFunctionInGMF =
6944-
Function->getOwningModule() &&
6945-
Function->getOwningModule()->isGlobalModule() &&
6944+
Function->isFromGlobalModule()
69466945
(IsImplicitlyInstantiated || Function->isInlined());
69476946

69486947
if (ND->getFormalLinkage() == Linkage::Internal && !IsInlineFunctionInGMF) {

0 commit comments

Comments
 (0)