[mlir-query] Attempt to fix gcc7 build

I haven't tested via gcc7, but this should address the error reported.
This commit is contained in:
Jacques Pienaar
2024-03-03 06:46:30 -08:00
parent 58b44c8102
commit 3ca73e03aa

View File

@@ -65,7 +65,7 @@ static Operation *extractFunction(std::vector<Operation *> &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);