Skip to content

Commit 6322fcb

Browse files
PR updates
1 parent 0e07049 commit 6322fcb

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

src/wasm-interpreter.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3454,7 +3454,6 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
34543454
<< " not found.")
34553455
.str());
34563456
}
3457-
// Unused in noassert builds
34583457
[[maybe_unused]] auto [_, inserted] =
34593458
allGlobals.try_emplace(global->name, importedGlobal);
34603459
// parsing/validation checked this already.
@@ -3463,7 +3462,6 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
34633462
Literals init = self()->visit(global->init).values;
34643463
auto& definedGlobal = definedGlobals.emplace_back(std::move(init));
34653464

3466-
// Unused in noassert builds
34673465
[[maybe_unused]] auto [_, inserted] =
34683466
allGlobals.try_emplace(global->name, &definedGlobal);
34693467
// parsing/validation checked this already.
@@ -3489,15 +3487,13 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
34893487
<< " not found.")
34903488
.str());
34913489
}
3492-
// Unused in noassert builds
34933490
[[maybe_unused]] auto [_, inserted] =
34943491
allTags.try_emplace(tag->name, importedTag);
34953492
// parsing/validation checked this already.
34963493
assert(inserted && "Unexpected repeated tag name");
34973494
} else {
34983495
auto& definedTag = definedTags.emplace_back(*tag);
34993496

3500-
// Unused in noassert builds
35013497
[[maybe_unused]] auto [_, inserted] =
35023498
allTags.try_emplace(tag->name, &definedTag);
35033499
// parsing/validation checked this already.
@@ -3523,7 +3519,6 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
35233519
<< " not found.")
35243520
.str());
35253521
}
3526-
// Unused in noassert builds
35273522
[[maybe_unused]] auto [_, inserted] =
35283523
allTables.try_emplace(table->name, importedTable);
35293524
// parsing/validation checked this already.
@@ -3535,7 +3530,6 @@ class ModuleRunnerBase : public ExpressionRunner<SubType> {
35353530
auto null = Literal::makeNull(table->type.getHeapType());
35363531
auto& runtimeTable =
35373532
definedTables.emplace_back(createTable(null, *table));
3538-
// Unused in noassert builds
35393533
[[maybe_unused]] auto [_, inserted] =
35403534
allTables.try_emplace(table->name, runtimeTable.get());
35413535
assert(inserted && "Unexpected repeated table name");

src/wasm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2492,7 +2492,6 @@ class Global : public Importable {
24922492

24932493
class Tag : public Importable {
24942494
public:
2495-
// TODO: This should ideally be const.
24962495
HeapType type;
24972496

24982497
Type params() const { return type.getSignature().params; }

0 commit comments

Comments
 (0)