diff options
| author | Mehdi Amini <aminim@google.com> | 2019-04-01 10:17:45 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-04-01 11:00:30 -0700 |
| commit | b3a407fa68f8138c447aa953c572d7334ceb8817 (patch) | |
| tree | a726cd3b6e11c95b74a481f28a402c97745bd316 /mlir/lib/Transforms/LoopTiling.cpp | |
| parent | 62cd7511f3e146c699e3e60ce7a43a14b5ece9ce (diff) | |
| download | bcm5719-llvm-b3a407fa68f8138c447aa953c572d7334ceb8817.tar.gz bcm5719-llvm-b3a407fa68f8138c447aa953c572d7334ceb8817.zip | |
Fix MacOS build
This is making up for some differences in standard library and linker flags.
It also get rid of the requirement to build with RTTI.
--
PiperOrigin-RevId: 241348845
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
| -rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index f7fef1a428c..d262a5d14aa 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -368,7 +368,8 @@ void LoopTiling::getTileSizes(ArrayRef<AffineForOp> band, (*tileSizes)[i] = tSize; else // Set last tile size to cover the balance. - (*tileSizes)[i] = std::max(1UL, excessFactor / cumulProductOfTileSizes); + (*tileSizes)[i] = std::max( + 1U, static_cast<unsigned>(excessFactor / cumulProductOfTileSizes)); cumulProductOfTileSizes *= (*tileSizes)[i]; } if (avoidMaxMinBounds) |

