# Fixed issue where TypeInfo would use types from a prev CodeGen instance · gitcafe/zig

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

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

Visibility: public

Requested revision: 55e95daf543a27961fe9ca7a998d3cbd25d2973b

Requested commit: 55e95daf543a27961fe9ca7a998d3cbd25d2973b

Commit: 55e95daf543a27961fe9ca7a998d3cbd25d2973b

Tree: 04f8aabb79f53cabc5165e83858034221632a81e

Author: Jimmi HC

Committer: Jimmi HC

## Message

```
Fixed issue where TypeInfo would use types from a prev CodeGen instance
When doing multible codegen passes (such as building
compiler_rt and then something else) the TypeInfo cache code would point
to types from the prev code gen (such as the prev 'bool' type), giving
us errors like "expected type 'bool', but found type 'bool'"
This disabling of caching might have a performance hit, but correctness is better than
speed, so let's have this for now, until someone optimizes this
correctly (probably in stage2)

```

## Parents

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

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