From 0b7de06a23fcc90d568c250c0f4e29512bb32d67 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 21 Dec 2016 02:27:14 +0000 Subject: [PATCH] Fix build broken by changes in StringMatcher interface r290213 llvm-svn: 290231 --- lld/ELF/LinkerScript.h | 2 +- lld/ELF/SymbolTable.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index a3484c07..a377af3 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -144,7 +144,7 @@ struct SectionPattern { struct InputSectionDescription : BaseCommand { InputSectionDescription(StringRef FilePattern) - : BaseCommand(InputSectionKind), FilePat({FilePattern}) {} + : BaseCommand(InputSectionKind), FilePat(FilePattern) {} static bool classof(const BaseCommand *C); diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index 2578f6e..6cedf35 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -586,7 +586,7 @@ template std::vector SymbolTable::findAllByVersion(SymbolVersion Ver) { std::vector Res; - StringMatcher M({Ver.Name}); + StringMatcher M(Ver.Name); if (Ver.IsExternCpp) { initDemangledSyms(); -- 2.7.4