Skip to content

Commit 5346b95

Browse files
RKSimonmemfrob
authored andcommitted
[Sema] diagnoseEquivalentInternalLinkageDeclarations - assert for non-null NamedDecl. NFCI.
Fixes clang static analysis warnings.
1 parent 3b8f832 commit 5346b95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Sema/SemaOverload.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9926,6 +9926,7 @@ bool Sema::isEquivalentInternalLinkageDeclaration(const NamedDecl *A,
99269926

99279927
void Sema::diagnoseEquivalentInternalLinkageDeclarations(
99289928
SourceLocation Loc, const NamedDecl *D, ArrayRef<const NamedDecl *> Equiv) {
9929+
assert(D && "Unknown declaration");
99299930
Diag(Loc, diag::ext_equivalent_internal_linkage_decl_in_modules) << D;
99309931

99319932
Module *M = getOwningModule(D);

0 commit comments

Comments
 (0)