# link: fix accessing source atom's symbol index in codegen · gitcafe/zig

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

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

Visibility: public

Requested revision: 565f8979cc38d46b8b905f3a8b7db03238779ffc

Requested commit: 565f8979cc38d46b8b905f3a8b7db03238779ffc

Commit: 565f8979cc38d46b8b905f3a8b7db03238779ffc

Tree: 2edf8690b21953f2c9c90854ffea0b2a1f38b821

Author: Jakub Konka

Committer: Jacob Young

## Message

```
link: fix accessing source atom's symbol index in codegen

Since the owner can either be a `Decl` or a `LazySymbol` we need
to preserve this information at the codegen generate function level
so that we can then correctly work out the corresponding `Atom`
in the linker.

```

## Parents

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

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