Skip to content

Commit 7a3da5a

Browse files
committed
Don't consider source locations part of AttributedImport's identity
1 parent 2832aed commit 7a3da5a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

include/swift/AST/Import.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -739,15 +739,12 @@ struct DenseMapInfo<swift::AttributedImport<ModuleInfo>> {
739739
return detail::combineHashValue(
740740
ModuleInfoDMI::getHashValue(import.module),
741741
detail::combineHashValue(
742-
SourceLocDMI::getHashValue(import.importLoc),
743-
detail::combineHashValue(
744-
ImportOptionsDMI::getHashValue(import.options),
745-
StringRefDMI::getHashValue(import.sourceFileArg))));
742+
ImportOptionsDMI::getHashValue(import.options),
743+
StringRefDMI::getHashValue(import.sourceFileArg)));
746744
}
747745
static bool isEqual(const AttributedImport &a,
748746
const AttributedImport &b) {
749747
return ModuleInfoDMI::isEqual(a.module, b.module) &&
750-
SourceLocDMI::isEqual(a.importLoc, b.importLoc),
751748
ImportOptionsDMI::isEqual(a.options, b.options) &&
752749
StringRefDMI::isEqual(a.sourceFileArg, b.sourceFileArg) &&
753750
a.spiGroups == b.spiGroups;

0 commit comments

Comments
 (0)