Skip to content

Commit 4f32c08

Browse files
committed
[embedded] Avoid overwriting entries in the VTableMap (fix typo)
1 parent 3eb0b65 commit 4f32c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/IR/SILModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ SILVTable *SILModule::lookUpVTable(const ClassDecl *C,
523523
if (!Vtbl) {
524524
return TypeWalker::Action::Stop;
525525
}
526-
VTableMap[C] = Vtbl;
526+
VTableMap[S] = Vtbl;
527527
return TypeWalker::Action::Continue;
528528
})) {
529529
return nullptr;

0 commit comments

Comments
 (0)