# stage2: re-use ZIR for comptime and inline calls · gitcafe/zig

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

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

Visibility: public

Requested revision: 006e7f68056af62ae7713d7ef228841d11874735

Requested commit: 006e7f68056af62ae7713d7ef228841d11874735

Commit: 006e7f68056af62ae7713d7ef228841d11874735

Tree: 0d64585b1d78040506a898140ddc619e002b2147

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: re-use ZIR for comptime and inline calls

Instead of freeing ZIR after semantic analysis, we keep it around so
that it can be used for comptime calls, inline calls, and generic
function calls. ZIR memory is now managed by the Decl arena.

Debug dump() functions are conditionally compiled; only available in
Debug builds of the compiler.

Add a test for an inline function call.

```

## Parents

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

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