Fix build for the Linalg example dialect with MacOS

--

PiperOrigin-RevId: 242443831
This commit is contained in:
Nicolas Vasilache 2019-04-08 05:07:01 -07:00 committed by Mehdi Amini
parent adb0ca0732
commit ca89e7167d
2 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,3 @@
add_subdirectory(toy)
add_subdirectory(Linalg)

View File

@ -59,7 +59,7 @@ std::pair<mlir::Value *, unsigned> linalg::getViewRootIndexing(Value *view,
if (auto rangeOp = indexing->getDefiningOp()->cast<RangeOp>()) {
// If I sliced with a range and I sliced at this dim, then I'm it.
if (dim == sliceDim) {
return make_pair(rangeOp.getResult(), dim);
return std::make_pair(rangeOp.getResult(), dim);
}
// Otherwise, I did not change the rank, just go look for `dim` into my
// parent.