[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
This commit is contained in:
parent
aaaa310de2
commit
46c6d3fe75
|
@ -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();
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue