Skip to content

Commit 2e8411d

Browse files
committed
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 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@345923 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5ab8235 commit 2e8411d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,7 @@ void DwarfDebug::emitDebugRanges() {
21272127

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

0 commit comments

Comments
 (0)