Skip to content

Commit 37dc366

Browse files
committed
add '&&' to make it compile
1 parent a17b977 commit 37dc366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaOverload.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6941,7 +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->isFromGlobalModule()
6944+
Function->isFromGlobalModule() &&
69456945
(IsImplicitlyInstantiated || Function->isInlined());
69466946

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

0 commit comments

Comments
 (0)