[embedded] Avoid overwriting entries in the VTableMap (fix typo)

This commit is contained in:
Kuba Mracek
2023-10-05 13:48:03 -07:00
parent 7da86b1148
commit f144bf0bb4

View File

@@ -523,7 +523,7 @@ SILVTable *SILModule::lookUpVTable(const ClassDecl *C,
if (!Vtbl) {
return TypeWalker::Action::Stop;
}
VTableMap[C] = Vtbl;
VTableMap[S] = Vtbl;
return TypeWalker::Action::Continue;
})) {
return nullptr;