# Sema: initialize OPV comptime allocs correctly · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8f5db19791dde73e8e969c6ebf821767f1c3e50b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8f5db19791dde73e8e969c6ebf821767f1c3e50b

Requested commit: 8f5db19791dde73e8e969c6ebf821767f1c3e50b

Commit: 8f5db19791dde73e8e969c6ebf821767f1c3e50b

Tree: dc1337c0ff763087963f524e4f8d6e0c18fb887a

Author: Matthew Lugg

Committer: Matthew Lugg

## Message

```
Sema: initialize OPV comptime allocs correctly

This was caused a `[0]std.builtin.Type.StructField.Attributes` to be
considered `undefined`, even though that type is OPV so should prefer
its OPV `.{}` over `undefined`.

Resolves: #30039

```

## Parents

- [e52232cd570935d7880cbfe52215dbdf0f2d2243](https://git.cafe/gitcafe/zig/commit/e52232cd570935d7880cbfe52215dbdf0f2d2243?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8f5db19791dde73e8e969c6ebf821767f1c3e50b?format=markdown)
