[lld] r348480 - [LLD][ELF] - Use auto. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 6 02:56:11 PST 2018


Author: grimar
Date: Thu Dec  6 02:56:11 2018
New Revision: 348480

URL: http://llvm.org/viewvc/llvm-project?rev=348480&view=rev
Log:
[LLD][ELF] - Use auto. NFC.

This addresses the missed review comment.

Modified:
    lld/trunk/ELF/ScriptParser.cpp

Modified: lld/trunk/ELF/ScriptParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ScriptParser.cpp?rev=348480&r1=348479&r2=348480&view=diff
==============================================================================
--- lld/trunk/ELF/ScriptParser.cpp (original)
+++ lld/trunk/ELF/ScriptParser.cpp Thu Dec  6 02:56:11 2018
@@ -857,7 +857,7 @@ OutputSection *ScriptParser::readOutputS
       // We have a file name and no input sections description. It is not a
       // commonly used syntax, but still acceptable. In that case, all sections
       // from the file will be included.
-      InputSectionDescription *ISD = make<InputSectionDescription>(Tok);
+      auto *ISD = make<InputSectionDescription>(Tok);
       ISD->SectionPatterns.push_back({{}, StringMatcher({"*"})});
       Cmd->SectionCommands.push_back(ISD);
     }




More information about the llvm-commits mailing list