# migrate make_ptr_const to new anonymous decl mechanism · gitcafe/zig

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

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

Visibility: public

Requested revision: ecfb18286a5270943382effdf383bae4546b184f

Requested commit: ecfb18286a5270943382effdf383bae4546b184f

Commit: ecfb18286a5270943382effdf383bae4546b184f

Tree: a0f2853e50a26ab2d7e98f92cde006ac66de022a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
migrate make_ptr_const to new anonymous decl mechanism

Instead of creating Module.Decl objects, directly create InternPool
pointer values using the anon_decl Addr encoding.

The LLVM backend needed code to notice the alignment of the pointer and
lower accordingly. The other backends likely need a similar change.

```

## Parents

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

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