LibWasm: Fix broken build after merging un-rebased Validator changes

This commit is contained in:
Andreas Kling 2021-11-11 09:27:00 +01:00
parent fb003d71c2
commit 03ddda7979
Notes: sideshowbarker 2024-07-18 01:16:51 +09:00

View file

@ -24,7 +24,7 @@ ErrorOr<void, ValidationError> Validator::validate(Module& module)
if (result.is_error())
return;
for (auto& export_ : section.entries()) {
if (seen_export_names.try_set(export_.name()) != AK::HashSetResult::InsertedNewEntry)
if (seen_export_names.try_set(export_.name()).release_value_but_fixme_should_propagate_errors() != AK::HashSetResult::InsertedNewEntry)
result = Errors::duplicate_export_name(export_.name());
return;
}