diff options
Diffstat (limited to 'mlir/lib/Bytecode')
| -rw-r--r-- | mlir/lib/Bytecode/Writer/IRNumbering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Bytecode/Writer/IRNumbering.cpp b/mlir/lib/Bytecode/Writer/IRNumbering.cpp index 1bc02e172157..8e8e7148ee70 100644 --- a/mlir/lib/Bytecode/Writer/IRNumbering.cpp +++ b/mlir/lib/Bytecode/Writer/IRNumbering.cpp @@ -308,7 +308,7 @@ void IRNumberingState::computeGlobalNumberingState(Operation *rootOp) { } void IRNumberingState::number(Attribute attr) { - auto it = attrs.insert({attr, nullptr}); + auto it = attrs.try_emplace(attr); if (!it.second) { ++it.first->second->refCount; return; @@ -475,7 +475,7 @@ void IRNumberingState::number(OperationName opName) { } void IRNumberingState::number(Type type) { - auto it = types.insert({type, nullptr}); + auto it = types.try_emplace(type); if (!it.second) { ++it.first->second->refCount; return; |
