aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-17 10:39:45 -0800
committerKazu Hirata <kazu@google.com>2021-01-17 10:39:45 -0800
commit352fcfc69788093b50971a9f5540a61fa0887ce1 (patch)
tree9775f7738de13ae8fdb779e74c51d8f2734cd861 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent7e9e6ac526ebd90fe8ec0b8d2bb6edd3516ab908 (diff)
downloadllvm-352fcfc69788093b50971a9f5540a61fa0887ce1.zip
llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.gz
llvm-352fcfc69788093b50971a9f5540a61fa0887ce1.tar.bz2
[llvm] Use llvm::sort (NFC)
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 9f62cce..4d886f7 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -3830,7 +3830,7 @@ void ModuleBitcodeWriterBase::writeModuleLevelReferences(
NameVals.push_back(VE.getValueID(RI.getValue()));
// Sort the refs for determinism output, the vector returned by FS->refs() has
// been initialized from a DenseSet.
- llvm::sort(NameVals.begin() + SizeBeforeRefs, NameVals.end());
+ llvm::sort(drop_begin(NameVals, SizeBeforeRefs));
if (VTableFuncs.empty())
Stream.EmitRecord(bitc::FS_PERMODULE_GLOBALVAR_INIT_REFS, NameVals,