Backport fix from #3754 branch

This commit is contained in:
John Ericson 2020-06-29 17:59:27 +00:00
parent 71e4c9c505
commit a9c0ea30bf

View file

@ -36,10 +36,10 @@ struct PathReferences
template<typename Ref>
StorePathSet PathReferences<Ref>::referencesPossiblyToSelf(const Ref & self) const
{
StorePathSet references { references };
StorePathSet refs { references };
if (hasSelfReference)
references.insert(self);
return references;
refs.insert(self);
return refs;
}
template<typename Ref>