From 03ddda79793a2731855d6f3132fcb8027694dd75 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 11 Nov 2021 09:27:00 +0100 Subject: [PATCH] LibWasm: Fix broken build after merging un-rebased Validator changes --- Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp index e3a280d4fc..857ca555be 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp @@ -24,7 +24,7 @@ ErrorOr 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; }