Skip to content

Commit

Permalink
Update vtables.cc
Browse files Browse the repository at this point in the history
Signed-off-by: mauro 🤙 <[email protected]>
  • Loading branch information
mauro-balades committed Jun 22, 2024
1 parent 90b16ae commit ac58126
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/compiler/backend/llvm/vtables.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ llvm::Constant* LLVMBuilder::create_vtable_global(types::ClassType* type) {
vtabled_types.push_back(decl_type);
}
}
auto base_vtable_size = (int)type->get_decl()->get_virtual_fn_count() - vtable_size;
if (vtable_size < type->get_decl()->get_virtual_fn_count())
vtabled_types.insert(vtabled_types.begin(), type);
for (auto& decl_type : vtabled_types) {
Expand Down

0 comments on commit ac58126

Please sign in to comment.