diff options
Diffstat (limited to 'mlir/lib/Transforms/MaterializeVectors.cpp')
-rw-r--r-- | mlir/lib/Transforms/MaterializeVectors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/MaterializeVectors.cpp b/mlir/lib/Transforms/MaterializeVectors.cpp index 6819a4ef62a..2204c42dec1 100644 --- a/mlir/lib/Transforms/MaterializeVectors.cpp +++ b/mlir/lib/Transforms/MaterializeVectors.cpp @@ -388,7 +388,7 @@ materializeAttributes(Operation *opInst, VectorType hwVectorType) { SmallVector<NamedAttribute, 1> res; for (auto a : opInst->getAttrs()) { if (auto splat = a.second.dyn_cast<SplatElementsAttr>()) { - auto attr = SplatElementsAttr::get(hwVectorType, splat.getValue()); + auto attr = SplatElementsAttr::get(hwVectorType, splat.getSplatValue()); res.push_back(NamedAttribute(a.first, attr)); } else { res.push_back(a); |