Commit 204289af authored by Tom Stellard's avatar Tom Stellard
Browse files

Merging r342354:

------------------------------------------------------------------------
r342354 | kristina | 2018-09-16 15:21:59 -0700 (Sun, 16 Sep 2018) | 11 lines

[DebugInfo] Fix build when std::vector::iterator is a pointer

std::vector::iterator type may be a pointer, then
iterator::value_type fails to compile since iterator is not a class,
namespace, or enumeration.

Patch by orivej (Orivej Desh)

Differential Revision: https://reviews.llvm.org/D52142

------------------------------------------------------------------------

llvm-svn: 345923
parent bbaf33ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2127,7 +2127,7 @@ void DwarfDebug::emitDebugRanges() {

  auto NoRangesPresent = [this]() {
    return llvm::all_of(
        CUMap, [](const decltype(CUMap)::const_iterator::value_type &Pair) {
        CUMap, [](const decltype(CUMap)::value_type &Pair) {
          return Pair.second->getRangeLists().empty();
        });
  };