1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:07:34 +00:00

Libraries: Use AK::Variant default initialization where appropriate

This commit is contained in:
Ben Wiederhake 2021-09-19 23:00:45 +02:00 committed by Ali Mohammad Pur
parent 98a0f9c0bd
commit 32e98d0924
8 changed files with 12 additions and 12 deletions

View file

@ -381,7 +381,7 @@ Optional<InstantiationError> AbstractMachine::allocate_all_initial_phase(Module
});
module.for_each_section_of_type<ExportSection>([&](ExportSection const& section) {
for (auto& entry : section.entries()) {
Variant<FunctionAddress, TableAddress, MemoryAddress, GlobalAddress, Empty> address { Empty {} };
Variant<FunctionAddress, TableAddress, MemoryAddress, GlobalAddress, Empty> address {};
entry.description().visit(
[&](FunctionIndex const& index) {
if (module_instance.functions().size() > index.value())