We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7297d76 commit a2951aaCopy full SHA for a2951aa
lib/ClangImporter/ImportName.h
@@ -61,7 +61,9 @@ class ImportNameVersion : public RelationalOperationsBase<ImportNameVersion> {
61
// importing of names. We treat that with a rawValue of 5, and treat
62
// all major values of 5 or higher as being rawValue = majorversion + 1.
63
const auto &version = langOpts.EffectiveLanguageVersion;
64
- if (version.size() > 1 && version[0] == 4 && version[1] == 2) {
+ // If the effective version is 4.x, where x >= 2, the import version
65
+ // is 4.2.
66
+ if (version.size() > 1 && version[0] == 4 && version[1] >= 2) {
67
return ImportNameVersion::swift4_2();
68
}
69
unsigned major = version[0];
0 commit comments