# stage1: upgrade to new LLVM sret attribute requirement · gitcafe/zig

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

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

Visibility: public

Requested revision: 685b5c26b703d54381a74b71361816ad85ec8584

Requested commit: 685b5c26b703d54381a74b71361816ad85ec8584

Commit: 685b5c26b703d54381a74b71361816ad85ec8584

Tree: 59bb0fd0944f029a418339e554494fb4ee7af0dd

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage1: upgrade to new LLVM sret attribute requirement

LLVM 12 requires sret attributes to have the struct type as a parameter,
and provides no C function for supplying it. Therefore, we must add
another C++ wrapper API for adding the sret attribute.

Fixes ability to build from source in the llvm12 branch.

```

## Parents

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

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