summaryrefslogtreecommitdiff
path: root/mlir/lib/Bytecode
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-04-14 22:22:04 -0700
committerGitHub <noreply@github.com>2025-04-14 22:22:04 -0700
commiteb7f51485e8060a390a36a61a30a6f4332c24aae (patch)
treea5fb1e83422dcb2ca3bf1040f5440b29458f01e0 /mlir/lib/Bytecode
parent62ef10a0f62c668e1fa7e357f56052f3364544c5 (diff)
[mlir] Use llvm::append_range (NFC) (#135722)
Diffstat (limited to 'mlir/lib/Bytecode')
-rw-r--r--mlir/lib/Bytecode/Writer/BytecodeWriter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
index 404d361a50c1..6ebeac5ae69f 100644
--- a/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
+++ b/mlir/lib/Bytecode/Writer/BytecodeWriter.cpp
@@ -568,9 +568,8 @@ private:
std::vector<char> &newStorage = propertiesStorage.back();
size_t propertiesSize = sizeScratch.size() + rawProperties.size();
newStorage.reserve(propertiesSize);
- newStorage.insert(newStorage.end(), sizeScratch.begin(), sizeScratch.end());
- newStorage.insert(newStorage.end(), rawProperties.begin(),
- rawProperties.end());
+ llvm::append_range(newStorage, sizeScratch);
+ llvm::append_range(newStorage, rawProperties);
// Try to de-duplicate the new serialized properties.
// If the properties is a duplicate, pop it back from the storage.