summaryrefslogtreecommitdiffstats
path: root/mlir/bindings/python/pybind.cpp
diff options
context:
space:
mode:
authorNicolas Vasilache <ntv@google.com>2019-03-24 10:45:22 -0700
committerjpienaar <jpienaar@google.com>2019-03-29 17:35:20 -0700
commitf26c7cd792959ac206560dd6d3a608f72e08bc43 (patch)
treeeea89fd511e9e1f732a34a87afa71269094bee84 /mlir/bindings/python/pybind.cpp
parent405aa0af9eef9c14e982863494555a84479b7c88 (diff)
downloadbcm5719-llvm-f26c7cd792959ac206560dd6d3a608f72e08bc43.tar.gz
bcm5719-llvm-f26c7cd792959ac206560dd6d3a608f72e08bc43.zip
Cleanup ValueHandleArray
We just need a way to unpack ArrayRef<ValueHandle> to ArrayRef<Value*>. No need to expose this to the user. This reduces the cognitive overhead for the tutorial. PiperOrigin-RevId: 240037425
Diffstat (limited to 'mlir/bindings/python/pybind.cpp')
-rw-r--r--mlir/bindings/python/pybind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/bindings/python/pybind.cpp b/mlir/bindings/python/pybind.cpp
index 0184f8f5225..ffe1120fefe 100644
--- a/mlir/bindings/python/pybind.cpp
+++ b/mlir/bindings/python/pybind.cpp
@@ -956,7 +956,7 @@ PYBIND11_MODULE(pybind, m) {
"ret",
[](const std::vector<PythonValueHandle> &args) {
std::vector<ValueHandle> values(args.begin(), args.end());
- (intrinsics::ret(ValueHandleArray(values))); // vexing parse
+ (intrinsics::ret(ArrayRef<ValueHandle>{values})); // vexing parse
return PythonValueHandle(nullptr);
},
py::arg("args") = std::vector<PythonValueHandle>());
OpenPOWER on IntegriCloud