[mlir-vulkan-runner] Fix build failure after 200889f
authorrkayaith <rkayaith@gmail.com>
Mon, 3 Oct 2022 20:01:40 +0000 (16:01 -0400)
committerrkayaith <rkayaith@gmail.com>
Mon, 3 Oct 2022 20:11:49 +0000 (16:11 -0400)
mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp

index d04cb57..06a4b26 100644 (file)
 
 using namespace mlir;
 
-static LogicalResult runMLIRPasses(ModuleOp module) {
+static LogicalResult runMLIRPasses(Operation *op) {
+  auto module = dyn_cast<ModuleOp>(op);
+  if (!module)
+    return op->emitOpError("expected a 'builtin.module' op");
   PassManager passManager(module.getContext());
   applyPassManagerCLOptions(passManager);