diff options
| author | River Riddle <riverriddle@google.com> | 2019-12-23 12:36:20 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-12-23 16:05:05 -0800 |
| commit | ab46543cebbd8845262a50291f296e453d110a14 (patch) | |
| tree | a36f5e8e36cb4408819a9f7ab570fda449558e5f /mlir/lib/Dialect/LoopOps | |
| parent | 268365ab01dc7629b9c0bfeb71516478e40751fc (diff) | |
| download | bcm5719-llvm-ab46543cebbd8845262a50291f296e453d110a14.tar.gz bcm5719-llvm-ab46543cebbd8845262a50291f296e453d110a14.zip | |
Resubmit: ReImplement the Value classes as value-typed objects wrapping an internal pointer storage.
This will enable future commits to reimplement the internal implementation of OpResult without needing to change all of the existing users. This is part of a chain of commits optimizing the size of operation results.
PiperOrigin-RevId: 286930047
Diffstat (limited to 'mlir/lib/Dialect/LoopOps')
| -rw-r--r-- | mlir/lib/Dialect/LoopOps/LoopOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/LoopOps/LoopOps.cpp b/mlir/lib/Dialect/LoopOps/LoopOps.cpp index d3040c1bbb2..8e19eba911a 100644 --- a/mlir/lib/Dialect/LoopOps/LoopOps.cpp +++ b/mlir/lib/Dialect/LoopOps/LoopOps.cpp @@ -136,7 +136,7 @@ LogicalResult ForOp::moveOutOfLoop(ArrayRef<Operation *> ops) { } ForOp mlir::loop::getForInductionVarOwner(ValuePtr val) { - auto ivArg = dyn_cast<BlockArgument>(val); + auto ivArg = val.dyn_cast<BlockArgument>(); if (!ivArg) return ForOp(); assert(ivArg->getOwner() && "unlinked block argument"); |

