Skip to content

Commit 6b17b4e

Browse files
Remove designated initialized for c++17
1 parent dcc8fb0 commit 6b17b4e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/parser/wast-parser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,7 @@ MaybeResult<ModuleInstantiation> instantiation(Lexer& in) {
497497
return in.err("expected end of module instantiation");
498498
}
499499

500-
return ModuleInstantiation{.moduleName = *moduleId,
501-
.instanceName = *instanceId};
500+
return ModuleInstantiation{*moduleId, *instanceId};
502501
}
503502

504503
using ModuleOrInstantiation = std::variant<ModuleInstantiation, WASTModule>;

src/tools/wasm-shell.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ struct Shell {
190190

191191
// We copy pointers as a registered module's name might still be used
192192
// in an assertion or invoke command.
193-
194193
modules[reg.name] = modules[lastModule];
195194

196195
interfaces[reg.name] = interfaces[instanceName];

0 commit comments

Comments
 (0)