Skip to content

Commit a2c0e30

Browse files
committed
Work around MSVC bug for equality check of implicit operator conversion of class to base-class pointer with const subclass pointer
1 parent 49d134f commit a2c0e30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Serialization/ModuleFile.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,9 @@ TypeDecl *ModuleFile::lookupNestedType(Identifier name,
12741274
auto declOrOffset = Decls[entry.first - 1];
12751275
if (!declOrOffset.isComplete())
12761276
continue;
1277-
if (declOrOffset != parent)
1277+
1278+
Decl *decl = declOrOffset;
1279+
if (decl != parent)
12781280
continue;
12791281
return cast<TypeDecl>(getDecl(entry.second));
12801282
}

0 commit comments

Comments
 (0)