Skip to content

Commit 3ca73e0

Browse files
committed
[mlir-query] Attempt to fix gcc7 build
I haven't tested via gcc7, but this should address the error reported.
1 parent 58b44c8 commit 3ca73e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Query/Query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static Operation *extractFunction(std::vector<Operation *> &ops,
6565

6666
// Create the function
6767
FunctionType funcType =
68-
builder.getFunctionType(ValueRange(values), outputTypes);
68+
builder.getFunctionType(TypeRange(values), outputTypes);
6969
auto loc = builder.getUnknownLoc();
7070
func::FuncOp funcOp = func::FuncOp::create(loc, functionName, funcType);
7171

0 commit comments

Comments
 (0)