Skip to content

Commit 26325e8

Browse files
authored
[ClangImporter] Put the Swift compiler version into the module hash (#17344)
This is overkill when we could just be better about updating the lookup table version, but it's hard to remember to do that when changing something in ImportName.cpp or whatever.
1 parent 15c0ca5 commit 26325e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ClangImporter/SwiftLookupTable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,8 @@ SwiftNameLookupExtension::hashExtension(llvm::hash_code code) const {
16061606
return llvm::hash_combine(code, StringRef("swift.lookup"),
16071607
SWIFT_LOOKUP_TABLE_VERSION_MAJOR,
16081608
SWIFT_LOOKUP_TABLE_VERSION_MINOR,
1609-
inferImportAsMember);
1609+
inferImportAsMember,
1610+
version::getSwiftFullVersion());
16101611
}
16111612

16121613
void importer::addEntryToLookupTable(SwiftLookupTable &table,

0 commit comments

Comments
 (0)