From 3ca73e03aaf516ed10df2ec79f92f73d9216c884 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Sun, 3 Mar 2024 06:46:30 -0800 Subject: [PATCH] [mlir-query] Attempt to fix gcc7 build I haven't tested via gcc7, but this should address the error reported. --- mlir/lib/Query/Query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Query/Query.cpp b/mlir/lib/Query/Query.cpp index 7fdbbd181234b6..944aae52528aa7 100644 --- a/mlir/lib/Query/Query.cpp +++ b/mlir/lib/Query/Query.cpp @@ -65,7 +65,7 @@ static Operation *extractFunction(std::vector &ops, // Create the function FunctionType funcType = - builder.getFunctionType(ValueRange(values), outputTypes); + builder.getFunctionType(TypeRange(values), outputTypes); auto loc = builder.getUnknownLoc(); func::FuncOp funcOp = func::FuncOp::create(loc, functionName, funcType);