diff --git a/mlir/lib/Pass/PassRegistry.cpp b/mlir/lib/Pass/PassRegistry.cpp --- a/mlir/lib/Pass/PassRegistry.cpp +++ b/mlir/lib/Pass/PassRegistry.cpp @@ -100,9 +100,7 @@ // TODO: We should use the 'arg' as the lookup key instead of the pass id. const PassID *passID = function()->getPassID(); PassInfo passInfo(arg, description, passID, function); - bool inserted = passRegistry->try_emplace(passID, passInfo).second; - assert(inserted && "Pass registered multiple times"); - (void)inserted; + passRegistry->try_emplace(passID, passInfo); } /// Returns the pass info for the specified pass class or null if unknown.