# stage2: return type expressions of generic functions · gitcafe/zig

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

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

Visibility: public

Requested revision: c03a04a58942446b48e9294df991a17a3a6f7b48

Requested commit: c03a04a58942446b48e9294df991a17a3a6f7b48

Commit: c03a04a58942446b48e9294df991a17a3a6f7b48

Tree: 9e306df81d9c1443bee81ccc499d76f620e23923

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: return type expressions of generic functions

 * ZIR encoding for function instructions have a body for the return
   type. This lets Sema for generic functions do the same thing it does
   for parameters, handling `error.GenericPoison` in the evaluation of
   the return type by marking the function as generic.

 * Sema: fix missing block around the new Decl arena finalization. This
   led to a memory corruption.

 * Added some floating point support to the LLVM backend but didn't get
   far enough to pass any new tests.

```

## Parents

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

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