Use the range variant of transform instead of unpacking begin/end

No functionality change is intended.

llvm-svn: 278476
This commit is contained in:
David Majnemer
2016-08-12 04:32:42 +00:00
parent c700490f48
commit 2d006e7673
7 changed files with 13 additions and 12 deletions

View File

@@ -2858,7 +2858,7 @@ std::error_code BitcodeReader::resolveGlobalAndIndirectSymbolInits() {
static APInt readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) {
SmallVector<uint64_t, 8> Words(Vals.size());
std::transform(Vals.begin(), Vals.end(), Words.begin(),
transform(Vals, Words.begin(),
BitcodeReader::decodeSignRotatedValue);
return APInt(TypeBits, Words);