diff options
| author | MLIR Team <no-reply@google.com> | 2019-05-11 15:24:47 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-05-20 13:37:20 -0700 |
| commit | 41d90a85bd7942a9a27011f09c3a49cc32fdaeae (patch) | |
| tree | 9f625898fd50551a4c4eb214e24ea29e23ac043a /mlir/lib/Transforms/Utils/LoopUtils.cpp | |
| parent | 02e03b9bf4a1fe60b89d4bd662895ebcc374129b (diff) | |
| download | bcm5719-llvm-41d90a85bd7942a9a27011f09c3a49cc32fdaeae.tar.gz bcm5719-llvm-41d90a85bd7942a9a27011f09c3a49cc32fdaeae.zip | |
Automated rollback of changelist 247778391.
PiperOrigin-RevId: 247778691
Diffstat (limited to 'mlir/lib/Transforms/Utils/LoopUtils.cpp')
| -rw-r--r-- | mlir/lib/Transforms/Utils/LoopUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp index 7fbb48ecf99..a10e4a1ae49 100644 --- a/mlir/lib/Transforms/Utils/LoopUtils.cpp +++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp @@ -363,7 +363,7 @@ void mlir::getPerfectlyNestedLoops(SmallVectorImpl<AffineForOp> &nestedLoops, nestedLoops.push_back(curr); auto *currBody = curr.getBody(); while (currBody->begin() == std::prev(currBody->end(), 2) && - (curr = dyn_cast<AffineForOp>(curr.getBody()->front()))) { + (curr = curr.getBody()->front().dyn_cast<AffineForOp>())) { nestedLoops.push_back(curr); currBody = curr.getBody(); } |

