[Fix] Fix compilation warning on unused var.
authorrdzhabarov <rdzhabarov@google.com>
Wed, 29 Jun 2022 19:47:57 +0000 (19:47 +0000)
committerrdzhabarov <rdzhabarov@google.com>
Wed, 29 Jun 2022 19:54:49 +0000 (19:54 +0000)
mlir/include/mlir/IR/AsmState.h

index b0458f5..df7e5c3 100644 (file)
@@ -311,6 +311,7 @@ public:
   void attachResourceParser(std::unique_ptr<AsmResourceParser> 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");
   }