[lld] r346160 - Fix build breakerage on GCC 5.4:
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 5 11:43:34 PST 2018
Author: aganea
Date: Mon Nov 5 11:43:34 2018
New Revision: 346160
URL: http://llvm.org/viewvc/llvm-project?rev=346160&view=rev
Log:
Fix build breakerage on GCC 5.4:
/home/buildslave/slave_as-bldslv8/lld-perf-testsuite/llvm/tools/lld/COFF/PDB.cpp:365:51: error: 'auto' not allowed in lambda parameter
auto DbgIt = find_if(File->getDebugChunks(), [](auto &C) {
^~~~
http://lab.llvm.org:8011/builders/lld-perf-testsuite/builds/8717/steps/build-bin%2Flld/logs/stdio
Modified:
lld/trunk/COFF/PDB.cpp
Modified: lld/trunk/COFF/PDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/PDB.cpp?rev=346160&r1=346159&r2=346160&view=diff
==============================================================================
--- lld/trunk/COFF/PDB.cpp (original)
+++ lld/trunk/COFF/PDB.cpp Mon Nov 5 11:43:34 2018
@@ -362,7 +362,7 @@ static void addTypeInfo(pdb::TpiStreamBu
// Recompiling the precompiled headers will generate a new PCH key and thus
// invalidate all the dependent objects.
static uint32_t extractPCHSignature(ObjFile *File) {
- auto DbgIt = find_if(File->getDebugChunks(), [](auto &C) {
+ auto DbgIt = find_if(File->getDebugChunks(), [](SectionChunk *C) {
return C->getSectionName() == ".debug$S";
});
if (!DbgIt)
More information about the llvm-commits
mailing list