forked from OSchip/llvm-project
Fix build for the Linalg example dialect with MacOS
-- PiperOrigin-RevId: 242443831
This commit is contained in:
parent
adb0ca0732
commit
ca89e7167d
|
@ -1,2 +1,3 @@
|
|||
add_subdirectory(toy)
|
||||
add_subdirectory(Linalg)
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue