# ZigLLVMTargetMachineEmitToFile: put sanitizers in registerOptimizerLastEPCallback · gitcafe/zig

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

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

Visibility: public

Requested revision: e8e49efe211f85d854388e95c6fe0344f133ea2d

Requested commit: e8e49efe211f85d854388e95c6fe0344f133ea2d

Commit: e8e49efe211f85d854388e95c6fe0344f133ea2d

Tree: 2b0a202ce086e78cb8dedf95d25ba56e5e642452

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
ZigLLVMTargetMachineEmitToFile: put sanitizers in registerOptimizerLastEPCallback

matching the default of clang's behavior. I originally put them in
registerOptimizerEarlyEPCallback because I thought clang was doing that,
but I see now it is behind the flag `--sanitizer-early-opt-ep` which is
disabled by default.

```

## Parents

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

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