We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce4426 commit a4819d6Copy full SHA for a4819d6
mlir/lib/IR/MLIRContext.cpp
@@ -986,8 +986,7 @@ void RegisteredOperationName::insert(
986
}
987
StringRef name = impl->getName().strref();
988
// Insert the operation info if it doesn't exist yet.
989
- auto it = ctxImpl.operations.insert({name, nullptr});
990
- it.first->second = std::move(ownedImpl);
+ ctxImpl.operations[name] = std::move(ownedImpl);
991
992
// Update the registered info for this operation.
993
auto emplaced = ctxImpl.registeredOperations.try_emplace(
0 commit comments