Commit 4ef49b0
Nuri Amari
[dthin-lto][cs-irpgo] Avoid assertion with unset profile output path
When using -fcs-generate-profile with distributed thin-lto without
setting a profile output path, we hit an assertion constructing
PGOOptions:
https://github.com/llvm/llvm-project/blob/6041c745f32e8fd60ed24e29e7d919d8d1c87ca6/llvm/lib/Support/PGOOptions.cpp#L36
In non distributed thin-lto settings (local thin-lto for example), this
profile output path is automatically set to a default value if
-fcs-generate-profile is passed.
This patch follows suit, using the default output path if one isn't set.1 parent 5e2b061 commit 4ef49b0
File tree
2 files changed
+12
-1
lines changed- clang
- lib/CodeGen
- test/CodeGen/distributed-thin-lto
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | | - | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1338 | 1341 | | |
1339 | 1342 | | |
1340 | 1343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments