# llvm: fix incorrect file paths in debug info · gitcafe/zig

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

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

Visibility: public

Requested revision: 69dc1a6bb28dc47a57902d421c538f2f82edea8a

Requested commit: 69dc1a6bb28dc47a57902d421c538f2f82edea8a

Commit: 69dc1a6bb28dc47a57902d421c538f2f82edea8a

Tree: f135f58d394e18deeb0ec8ecd70ac0534e0ac58c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
llvm: fix incorrect file paths in debug info

The previous code incorrectly added `sub_path` twice.

Also for the compilation unit, it was passing empty string to realpath,
resulting in the error handling codepath being used.

closes #17482

```

## Parents

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

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