Skip to content

Commit cc60491

Browse files
authored
[lld][WebAssembly] Remove redundant assignment. NFC (#160400)
1 parent fa240f2 commit cc60491

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lld/wasm/Driver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,6 @@ static void readConfigs(opt::InputArgList &args) {
556556
ctx.arg.memoryExport = args.getLastArgValue(OPT_export_memory_with_name);
557557
} else if (args.hasArg(OPT_export_memory)) {
558558
ctx.arg.memoryExport = memoryName;
559-
} else {
560-
ctx.arg.memoryExport = std::optional<llvm::StringRef>();
561559
}
562560

563561
ctx.arg.sharedMemory = args.hasArg(OPT_shared_memory);

0 commit comments

Comments
 (0)