[llvm-branch-commits] [llvm-branch] r345923 - Merging r342354:
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Nov 1 19:46:33 PDT 2018
Author: tstellar
Date: Thu Nov 1 19:46:33 2018
New Revision: 345923
URL: http://llvm.org/viewvc/llvm-project?rev=345923&view=rev
Log:
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
------------------------------------------------------------------------
Modified:
llvm/branches/release_70/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/branches/release_70/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_70/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=345923&r1=345922&r2=345923&view=diff
==============================================================================
--- llvm/branches/release_70/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/branches/release_70/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Nov 1 19:46:33 2018
@@ -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();
});
};
More information about the llvm-branch-commits
mailing list