OSDN Git Service

ValueEnumerator: Use std::find_if, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 23 Apr 2016 04:22:38 +0000 (04:22 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 23 Apr 2016 04:22:38 +0000 (04:22 +0000)
commit436d289b0e25c3e5de7fae83c71f526a6e1f6bdc
tree2c85e9f60e75d9ab5a77c659348be2c6952c2908
parent20c4466364bbcbc779f776e0bf60ddb27dde9b7f
ValueEnumerator: Use std::find_if, NFC

Mehdi's pattern recognition pulled this one out.  This is cleaner with
std::find_if than with the strange helper function that took an iterator
by reference and updated it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267271 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/Bitcode/Writer/ValueEnumerator.h