diff options
author | Kristina Brooks <kristina@nym.hush.com> | 2018-09-16 22:21:59 +0000 |
---|---|---|
committer | Kristina Brooks <kristina@nym.hush.com> | 2018-09-16 22:21:59 +0000 |
commit | 46c6d3fe75267608317fcce9be3c51cf5e44e70c (patch) | |
tree | 79fcd848ec3ec2f71cd7872a225d2b07243f5533 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | aaaa310de21650e1234f6ef991b676616c2a36da (diff) | |
download | bcm5719-llvm-46c6d3fe75267608317fcce9be3c51cf5e44e70c.tar.gz bcm5719-llvm-46c6d3fe75267608317fcce9be3c51cf5e44e70c.zip |
[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: 342354
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-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 4cb9fc6fd7d..78d11fb1252 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2186,7 +2186,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(); }); }; |