diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-06 18:27:33 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-06 18:27:33 -0800 |
commit | 1d0bc05551587046c4a6896215c92f7e1259d10e (patch) | |
tree | 5de082741e2895d1c06bc814244cfcc43a2f6532 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | fbc13e9345c7c9607f0c28e0ccfa9a7baf254f29 (diff) | |
download | llvm-1d0bc05551587046c4a6896215c92f7e1259d10e.zip llvm-1d0bc05551587046c4a6896215c92f7e1259d10e.tar.gz llvm-1d0bc05551587046c4a6896215c92f7e1259d10e.tar.bz2 |
[llvm] Use llvm::append_range (NFC)
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 4b81ccd..9f62cce 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -3629,7 +3629,7 @@ static void writeFunctionTypeMetadataRecords(BitstreamWriter &Stream, Record.clear(); Record.push_back(VC.VFunc.GUID); Record.push_back(VC.VFunc.Offset); - Record.insert(Record.end(), VC.Args.begin(), VC.Args.end()); + llvm::append_range(Record, VC.Args); Stream.EmitRecord(Ty, Record); } }; @@ -3703,7 +3703,7 @@ static void writeWholeProgramDevirtResolutionByArg( SmallVector<uint64_t, 64> &NameVals, const std::vector<uint64_t> &args, const WholeProgramDevirtResolution::ByArg &ByArg) { NameVals.push_back(args.size()); - NameVals.insert(NameVals.end(), args.begin(), args.end()); + llvm::append_range(NameVals, args); NameVals.push_back(ByArg.TheKind); NameVals.push_back(ByArg.Info); |