From 490fccb1700502a98e1ef468d1fcc37d25fee470 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 17 Mar 2017 13:00:45 +0000 Subject: [PATCH] Remove unnecessary (). NFC. llvm-svn: 298076 --- lld/ELF/LinkerScript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 36dbb7a10ec8..8731b378f52b 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -1784,7 +1784,7 @@ Expr ScriptParser::readPrimary() { expect("("); expect("."); expect(")"); - return []() { return ScriptBase->getDot(); }; + return [] { return ScriptBase->getDot(); }; } // GNU linkers implements more complicated logic to handle // DATA_SEGMENT_RELRO_END. We instead ignore the arguments and just align to @@ -1795,7 +1795,7 @@ Expr ScriptParser::readPrimary() { expect(","); readExpr(); expect(")"); - return []() { return alignTo(ScriptBase->getDot(), Target->PageSize); }; + return [] { return alignTo(ScriptBase->getDot(), Target->PageSize); }; } if (Tok == "SIZEOF") { StringRef Name = readParenLiteral();