diff options
| author | Joe Loser <joeloser@fastmail.com> | 2023-01-15 21:39:16 -0700 |
|---|---|---|
| committer | Joe Loser <joeloser@fastmail.com> | 2023-01-16 14:49:37 -0700 |
| commit | a288d7f937708cf67d960962bfa22ffae37ddbf4 (patch) | |
| tree | 25e01a0603227ea89a66ec7bbf02944e3f7689c0 /mlir/lib/Bytecode/Writer/IRNumbering.cpp | |
| parent | ffd3a19e653f9356ec0be65d4e1c38562573f6c7 (diff) | |
[llvm][ADT] Replace uses of `makeMutableArrayRef` with deduction guides
Similar to how `makeArrayRef` is deprecated in favor of deduction guides, do the
same for `makeMutableArrayRef`.
Once all of the places in-tree are using the deduction guides for
`MutableArrayRef`, we can mark `makeMutableArrayRef` as deprecated.
Differential Revision: https://reviews.llvm.org/D141814
Diffstat (limited to 'mlir/lib/Bytecode/Writer/IRNumbering.cpp')
| -rw-r--r-- | mlir/lib/Bytecode/Writer/IRNumbering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Bytecode/Writer/IRNumbering.cpp b/mlir/lib/Bytecode/Writer/IRNumbering.cpp index 9fed3236af58..cf9be57912f6 100644 --- a/mlir/lib/Bytecode/Writer/IRNumbering.cpp +++ b/mlir/lib/Bytecode/Writer/IRNumbering.cpp @@ -150,9 +150,9 @@ IRNumberingState::IRNumberingState(Operation *op) { // bytes it takes to encode a varint index to that sub-section. This allows // for more efficiently encoding components of the same dialect (e.g. we only // have to encode the dialect reference once). - groupByDialectPerByte(llvm::makeMutableArrayRef(orderedAttrs)); - groupByDialectPerByte(llvm::makeMutableArrayRef(orderedOpNames)); - groupByDialectPerByte(llvm::makeMutableArrayRef(orderedTypes)); + groupByDialectPerByte(llvm::MutableArrayRef(orderedAttrs)); + groupByDialectPerByte(llvm::MutableArrayRef(orderedOpNames)); + groupByDialectPerByte(llvm::MutableArrayRef(orderedTypes)); // Finalize the numbering of the dialect resources. finalizeDialectResourceNumberings(op); |
