From 4cd770ff3f8299ab521e1cad15683b43e0f616d9 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Mon, 10 Mar 2014 01:04:18 +0000 Subject: [PATCH] MC: Appease the buildbots This is fallout from r203429. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203430 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCSectionMachO.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MC/MCSectionMachO.cpp b/lib/MC/MCSectionMachO.cpp index 6f8802c9599..9cc534da19e 100644 --- a/lib/MC/MCSectionMachO.cpp +++ b/lib/MC/MCSectionMachO.cpp @@ -209,7 +209,7 @@ std::string MCSectionMachO::ParseSectionSpecifier(StringRef Spec, // In. // Figure out which section type it is. auto TypeDescriptor = std::find_if( std::begin(SectionTypeDescriptors), std::end(SectionTypeDescriptors), - [&](const decltype(*SectionTypeDescriptors) &Descriptor) { + [&](decltype(*SectionTypeDescriptors) &Descriptor) { return Descriptor.AssemblerName && SectionType == Descriptor.AssemblerName; }); @@ -238,7 +238,7 @@ std::string MCSectionMachO::ParseSectionSpecifier(StringRef Spec, // In. for (StringRef &SectionAttr : SectionAttrs) { auto AttrDescriptorI = std::find_if( std::begin(SectionAttrDescriptors), std::end(SectionAttrDescriptors), - [&](const decltype(*SectionAttrDescriptors) &Descriptor) { + [&](decltype(*SectionAttrDescriptors) &Descriptor) { return Descriptor.AssemblerName && SectionAttr.trim() == Descriptor.AssemblerName; });