Skip to content

Commit c5dd11a

Browse files
committed
[embedded] Don't deserialize alraedy existin superclass vtables in SILModule::lookUpVTable
1 parent f144bf0 commit c5dd11a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SIL/IR/SILModule.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,9 @@ SILVTable *SILModule::lookUpVTable(const ClassDecl *C,
519519
return nullptr;
520520

521521
if (C->walkSuperclasses([&](ClassDecl *S) {
522+
auto R = VTableMap.find(S);
523+
if (R != VTableMap.end())
524+
return TypeWalker::Action::Continue;
522525
SILVTable *Vtbl = getSILLoader()->lookupVTable(S);
523526
if (!Vtbl) {
524527
return TypeWalker::Action::Stop;

0 commit comments

Comments
 (0)