[DebugInfo] Fix build when std::vector::iterator is a pointer
authorKristina Brooks <kristina@nym.hush.com>
Sun, 16 Sep 2018 22:21:59 +0000 (22:21 +0000)
committerKristina Brooks <kristina@nym.hush.com>
Sun, 16 Sep 2018 22:21:59 +0000 (22:21 +0000)
commit46c6d3fe75267608317fcce9be3c51cf5e44e70c
tree79fcd848ec3ec2f71cd7872a225d2b07243f5533
parentaaaa310de21650e1234f6ef991b676616c2a36da
[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
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp