# stage1: back out the broken visibility changes · gitcafe/zig

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

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

Visibility: public

Requested revision: 1ff9a18cd327027164073f1ebf9c2cca6c3de876

Requested commit: 1ff9a18cd327027164073f1ebf9c2cca6c3de876

Commit: 1ff9a18cd327027164073f1ebf9c2cca6c3de876

Tree: 97cc523ac0c060e892f4df9cac6d62beb07d01e4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

````
stage1: back out the broken visibility changes

```
$ valgrind ./zig test ../test/behavior.zig -target powerpc-linux-musl -lc -I../test
==2828778== Invalid read of size 1
==2828778==    at 0x6EA0265: LLVMSetVisibility (in /home/andy/Downloads/zig/build/zig)
==2828778==    by 0x1BCE60B: do_code_gen(CodeGen*) (codegen.cpp:9031)
==2828778==    by 0x1BD51E2: codegen_build_object(CodeGen*) (codegen.cpp:10610)
==2828778==    by 0x1BA5C17: zig_stage1_build_object (stage1.cpp:132)
==2828778==    by 0xE61E24: Module.build_object (stage1.zig:149)
==2828778==    by 0xC3D4CE: Compilation.updateStage1Module (Compilation.zig:5025)
==2828778==    by 0xC3117E: Compilation.performAllTheWork (Compilation.zig:2691)
==2828778==    by 0xC2A3ED: Compilation.update (Compilation.zig:2098)
==2828778==    by 0xBB9D1F: main.updateModule (main.zig:3104)
==2828778==    by 0xB16B75: main.buildOutputType (main.zig:2793)
==2828778==    by 0xAD0526: main.mainArgs (main.zig:225)
==2828778==    by 0xACFCB9: main (stage1.zig:48)
```

Since the plan is to ship stage3 for Zig 0.10.0, the stage1
implementation of this hardly matters.

````

## Parents

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

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