Commit 00a09be
committed
[clang][DebugInfo] Handle empty comp_dir in CodeGen
Fix a logic mistake in DebugInfo CodeGen that if the compilation
directory is empty, the leading separator is dropped with emitting path.
This code path is usually not possible in current state unless the
compilation is done from a file system that do not have current working
directory and compilation caching include tree file system is such a
file system. This causes PCMs are encoded with wrong path in the
gmodule compilation, causing lost of debug info.
Note this is a reduced and safer version from upstream fix:
llvm#150130
The test is in swift repo since the only trigger in current branch is to
trigger from swift caching builds.
rdar://1567596451 parent 63895c9 commit 00a09be
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3119 | 3119 | | |
3120 | 3120 | | |
3121 | 3121 | | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
3122 | 3125 | | |
3123 | 3126 | | |
3124 | 3127 | | |
| |||
0 commit comments