Fix a few mismatched iterator types revealed from a libc++ + LLVM_EXPENSIVE_CHECKS...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 10 Apr 2020 17:11:29 +0000 (10:11 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 10 Apr 2020 17:12:51 +0000 (10:12 -0700)
commit67a2cc80b647886284d04621cbd194b4109faddd
treea5391fbf79f4ec0ec8e25f6301ba60f1a04c8f1a
parent7f38812d5b7e0fd5145e44d5ae831a67d782dca6
Fix a few mismatched iterator types revealed from a libc++ + LLVM_EXPENSIVE_CHECKS build

These were accidental SCARY iterator uses that weren't guaranteed and in
libc++'s debug checking mode were actually distinct types. Use decltype
to make it easier to keep these things up to date.
llvm/include/llvm/IR/Attributes.h
llvm/include/llvm/Remarks/RemarkLinker.h