[Mlir-commits] [mlir] [mlir][spirv][nfc] Refactor member decorations in StructType (PR #150218)
Jakub Kuderski
llvmlistbot at llvm.org
Wed Jul 23 06:44:03 PDT 2025
================
@@ -406,8 +406,9 @@ LogicalResult Serializer::processMemberDecoration(
SmallVector<uint32_t, 4> args(
{structID, memberDecoration.memberIndex,
static_cast<uint32_t>(memberDecoration.decoration)});
- if (memberDecoration.hasValue) {
- args.push_back(memberDecoration.decorationValue);
+ if (memberDecoration.hasValue()) {
+ args.push_back(
+ cast<mlir::IntegerAttr>(memberDecoration.decorationValue).getInt());
----------------
kuhar wrote:
```suggestion
cast<IntegerAttr>(memberDecoration.decorationValue).getInt());
```
https://github.com/llvm/llvm-project/pull/150218
More information about the Mlir-commits
mailing list