diff options
Diffstat (limited to 'mlir/lib/IR/Attributes.cpp')
| -rw-r--r-- | mlir/lib/IR/Attributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/IR/Attributes.cpp b/mlir/lib/IR/Attributes.cpp index f2f3d41f980..b546643837b 100644 --- a/mlir/lib/IR/Attributes.cpp +++ b/mlir/lib/IR/Attributes.cpp @@ -527,7 +527,7 @@ DenseElementsAttr::AttributeElementIterator::AttributeElementIterator( /// Accesses the Attribute value at this iterator position. Attribute DenseElementsAttr::AttributeElementIterator::operator*() const { - auto owner = getFromOpaquePointer(object).cast<DenseElementsAttr>(); + auto owner = getFromOpaquePointer(base).cast<DenseElementsAttr>(); Type eltTy = owner.getType().getElementType(); if (auto intEltTy = eltTy.dyn_cast<IntegerType>()) { if (intEltTy.getWidth() == 1) |

