From 21b638da6bc7427233c8e131919f3a6f9bfcfa25 Mon Sep 17 00:00:00 2001 From: rkayaith Date: Mon, 3 Oct 2022 16:01:40 -0400 Subject: [PATCH] [mlir-vulkan-runner] Fix build failure after 200889f --- mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp b/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp index d04cb57..06a4b26 100644 --- a/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp +++ b/mlir/tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp @@ -41,7 +41,10 @@ using namespace mlir; -static LogicalResult runMLIRPasses(ModuleOp module) { +static LogicalResult runMLIRPasses(Operation *op) { + auto module = dyn_cast(op); + if (!module) + return op->emitOpError("expected a 'builtin.module' op"); PassManager passManager(module.getContext()); applyPassManagerCLOptions(passManager); -- 2.7.4