[lld] r352407 - Refactoring. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 28 13:39:58 PST 2019


On it.

On Mon, Jan 28, 2019 at 12:49 PM Martin Storsjö <martin at martin.st> wrote:

> On Mon, 28 Jan 2019, Rui Ueyama via llvm-commits wrote:
>
> > Author: ruiu
> > Date: Mon Jan 28 11:11:52 2019
> > New Revision: 352407
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=352407&view=rev
> > Log:
> > Refactoring. NFC.
> >
> > Modified:
> >    lld/trunk/ELF/ScriptParser.cpp
>
> This broke compilation with GCC 5.4:
>
> ../tools/lld/ELF/ScriptParser.cpp: In function
> ‘std::tuple<lld::elf::ELFKind, short unsigned int>
> parseBfdName(llvm::StringRef)’:
> ../tools/lld/ELF/ScriptParser.cpp:389:48: error: converting to
> ‘std::tuple<lld::elf::ELFKind, short unsigned int>’ from initializer list
> would use
> explicit constructor ‘constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&)
> [with _U1 =
> lld::elf::ELFKind; _U2 = llvm::ELF::<anonymous enum>;
> <template-parameter-2-3> =
> void;_T1 = lld::elf::ELFKind; _T2 = short unsigned int]’
>         .Case("elf32-i386", {ELF32LEKind, EM_386})
>                                                  ^
>
> // Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190128/c602ee85/attachment.html>


More information about the llvm-commits mailing list