diff options
Diffstat (limited to 'mlir/lib/Bytecode/Writer/BytecodeWriter.cpp')
| -rw-r--r-- | mlir/lib/Bytecode/Writer/BytecodeWriter.cpp | 5 |
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. |
