diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index f3a3bbc69608..2ca0fde46df7 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -849,7 +849,7 @@ Expr ScriptParser::readPrimary() { expect(","); readExpr(); expect(")"); - return [=](uint64_t Dot) -> uint64_t { return alignTo(Dot, E(Dot)); }; + return [=](uint64_t Dot) { return alignTo(Dot, E(Dot)); }; } if (Tok == "DATA_SEGMENT_END") { expect("(");