mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Work around MSVC bug for equality check of implicit operator conversion of class to base-class pointer with const subclass pointer
This commit is contained in:
@@ -1274,7 +1274,9 @@ TypeDecl *ModuleFile::lookupNestedType(Identifier name,
|
||||
auto declOrOffset = Decls[entry.first - 1];
|
||||
if (!declOrOffset.isComplete())
|
||||
continue;
|
||||
if (declOrOffset != parent)
|
||||
|
||||
Decl *decl = declOrOffset;
|
||||
if (decl != parent)
|
||||
continue;
|
||||
return cast<TypeDecl>(getDecl(entry.second));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user