summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/wasm/InputFiles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/InputFiles.cpp b/lld/wasm/InputFiles.cpp
index 19e56fda556..49fb314e42b 100644
--- a/lld/wasm/InputFiles.cpp
+++ b/lld/wasm/InputFiles.cpp
@@ -201,8 +201,8 @@ void ObjFile::initializeSymbols() {
ArrayRef<uint32_t> FuncTypes = WasmObj->functionTypes();
ArrayRef<WasmSignature> Types = WasmObj->types();
- for (const auto &C : WasmObj->comdats())
- Symtab->addComdat(C, this);
+ for (StringRef Name : WasmObj->comdats())
+ Symtab->addComdat(Name, this);
for (const WasmSegment &S : WasmObj->dataSegments()) {
InputSegment *Seg = make<InputSegment>(S, this);
OpenPOWER on IntegriCloud