aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Query/Query.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Query/Query.cpp')
-rw-r--r--mlir/lib/Query/Query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Query/Query.cpp b/mlir/lib/Query/Query.cpp
index b5a9d2f..03e4177 100644
--- a/mlir/lib/Query/Query.cpp
+++ b/mlir/lib/Query/Query.cpp
@@ -77,7 +77,7 @@ static Operation *extractFunction(std::vector<Operation *> &ops,
clonedOp->result_end());
}
// Add return operation
- builder.create<func::ReturnOp>(loc, clonedVals);
+ func::ReturnOp::create(builder, loc, clonedVals);
// Remove unused function arguments
size_t currentIndex = 0;