[Mlir-commits] [mlir] db76af2 - [mlir-query] Fix ambiguous overload

Jacques Pienaar llvmlistbot at llvm.org
Mon Mar 4 00:48:51 PST 2024


Author: Jacques Pienaar
Date: 2024-03-04T00:46:18-08:00
New Revision: db76af28f600a2607152096cf623560705f0215f

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

LOG: [mlir-query] Fix ambiguous overload

gcc7 fix didn't work (but unfortunately didn't get a notification and
forgot to check), this should hopefully address the ambiguous overload.
I can't repro locally/trying to create docker image for testing.

Added: 
    

Modified: 
    mlir/lib/Query/Query.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Query/Query.cpp b/mlir/lib/Query/Query.cpp
index 944aae52528aa7..7495e703f6303b 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(TypeRange(values), outputTypes);
+      builder.getFunctionType(TypeRange(ValueRange(values)), outputTypes);
   auto loc = builder.getUnknownLoc();
   func::FuncOp funcOp = func::FuncOp::create(loc, functionName, funcType);
 


        


More information about the Mlir-commits mailing list