Skip to content

Commit 633ffec

Browse files
compare module names instead of pointers
1 parent 4b5045f commit 633ffec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SymbolGraphGen/SymbolGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ void SymbolGraph::recordDefaultImplementationRelationships(Symbol S) {
430430
// If P is from a different module, and it's being added to a type
431431
// from the current module, add a `memberOf` relation to the extended
432432
// protocol.
433-
if (MemberVD->getModuleContext() != &M && VD->getDeclContext()) {
433+
if (MemberVD->getModuleContext()->getNameStr() != M.getNameStr() && VD->getDeclContext()) {
434434
if (auto *ExP = VD->getDeclContext()->getSelfNominalTypeDecl()) {
435435
recordEdge(Symbol(this, VD, nullptr),
436436
Symbol(this, ExP, nullptr),

0 commit comments

Comments
 (0)