diff --git a/src/tint/transform/transform.cc b/src/tint/transform/transform.cc index 73ee3ae85a..2002d025b0 100644 --- a/src/tint/transform/transform.cc +++ b/src/tint/transform/transform.cc @@ -144,7 +144,7 @@ ast::Type Transform::CreateASTTypeFor(CloneContext& ctx, const type::Type* ty) { return ctx.dst->ty.array(el, u32(count.value()), std::move(attrs)); } if (auto* s = ty->As()) { - return ctx.dst->ty(ctx.Clone(s->Declaration()->name->symbol)); + return ctx.dst->ty(ctx.Clone(s->Name())); } if (auto* s = ty->As()) { return CreateASTTypeFor(ctx, s->StoreType());