[Mlir-commits] [mlir] 3ca73e0 - [mlir-query] Attempt to fix gcc7 build

Jacques Pienaar llvmlistbot at llvm.org
Sun Mar 3 06:46:38 PST 2024


Author: Jacques Pienaar
Date: 2024-03-03T06:46:30-08:00
New Revision: 3ca73e03aaf516ed10df2ec79f92f73d9216c884

URL: https://github.com/llvm/llvm-project/commit/3ca73e03aaf516ed10df2ec79f92f73d9216c884
DIFF: https://github.com/llvm/llvm-project/commit/3ca73e03aaf516ed10df2ec79f92f73d9216c884.diff

LOG: [mlir-query] Attempt to fix gcc7 build

I haven't tested via gcc7, but this should address the error reported.

Added: 
    

Modified: 
    mlir/lib/Query/Query.cpp

Removed: 
    


################################################################################
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<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);
 


        


More information about the Mlir-commits mailing list