diff options
author | Tom Stellard <tstellar@redhat.com> | 2018-11-02 02:46:33 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2018-11-02 02:46:33 +0000 |
commit | 204289afe04be1f3b7bcb8c6d8957a586b7d0e42 (patch) | |
tree | 8cc8f14059f96d02113006ce62d8682dcbe03e83 | |
parent | bbaf33edcfa5aa24095bd50a128c8019dc689c47 (diff) | |
download | bcm5719-llvm-204289afe04be1f3b7bcb8c6d8957a586b7d0e42.tar.gz bcm5719-llvm-204289afe04be1f3b7bcb8c6d8957a586b7d0e42.zip |
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
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 500e7a00196..19b3afef34b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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(); }); }; |