summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopUnrollAndJam.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-05-11 17:57:32 -0700
committerMehdi Amini <joker.eph@gmail.com>2019-05-20 13:37:42 -0700
commitadca3c2edcdd1375d8c421816ec53044537ccd64 (patch)
tree249ea26fb4adeb899cdb8e1c2c593b5b7cf1a955 /mlir/lib/Transforms/LoopUnrollAndJam.cpp
parentc5ecf9910a209d96ab768a205783871b4316d711 (diff)
downloadbcm5719-llvm-adca3c2edcdd1375d8c421816ec53044537ccd64.tar.gz
bcm5719-llvm-adca3c2edcdd1375d8c421816ec53044537ccd64.zip
Replace Operation::cast with llvm::cast.
-- PiperOrigin-RevId: 247785983
Diffstat (limited to 'mlir/lib/Transforms/LoopUnrollAndJam.cpp')
-rw-r--r--mlir/lib/Transforms/LoopUnrollAndJam.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopUnrollAndJam.cpp b/mlir/lib/Transforms/LoopUnrollAndJam.cpp
index 0a23295c8d9..43e8f4a7306 100644
--- a/mlir/lib/Transforms/LoopUnrollAndJam.cpp
+++ b/mlir/lib/Transforms/LoopUnrollAndJam.cpp
@@ -187,7 +187,7 @@ LogicalResult mlir::loopUnrollJamByFactor(AffineForOp forOp,
// Insert the cleanup loop right after 'forOp'.
FuncBuilder builder(forInst->getBlock(),
std::next(Block::iterator(forInst)));
- auto cleanupAffineForOp = builder.clone(*forInst)->cast<AffineForOp>();
+ auto cleanupAffineForOp = cast<AffineForOp>(builder.clone(*forInst));
// Adjust the lower bound of the cleanup loop; its upper bound is the same
// as the original loop's upper bound.
AffineMap cleanupMap;
OpenPOWER on IntegriCloud