diff --git a/mlir/include/mlir/IR/AsmState.h b/mlir/include/mlir/IR/AsmState.h index b0458f5d408ef..df7e5c3b6f743 100644 --- a/mlir/include/mlir/IR/AsmState.h +++ b/mlir/include/mlir/IR/AsmState.h @@ -311,6 +311,7 @@ class ParserConfig { void attachResourceParser(std::unique_ptr parser) { StringRef name = parser->getName(); auto it = resourceParsers.try_emplace(name, std::move(parser)); + (void)it; assert(it.second && "resource parser already registered with the given name"); }