[llvm] r342354 - [DebugInfo] Fix build when std::vector::iterator is a pointer
Kristina Brooks via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 16 15:22:00 PDT 2018
Author: kristina
Date: Sun Sep 16 15:21:59 2018
New Revision: 342354
URL: http://llvm.org/viewvc/llvm-project?rev=342354&view=rev
Log:
[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/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=342354&r1=342353&r2=342354&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Sun Sep 16 15:21:59 2018
@@ -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();
});
};
More information about the llvm-commits
mailing list