Commit cf204f2
committed
Set debug location to Coroutine call expression
If debug info generation is enabled, set debug location to the
coroutine call instruction to make sure there are no issues with invalid
debug information in LTO.
This happens because in LTO, if a call to a function doesn't contain a
debug location, we see the warning:
inlinable function call in a function with debug info must have a
!dbg location
ld: warning: Invalid debug info found, debug info will be stripped
Which then strips the debug info from the entire .o file linked into the
dylib.
(cherry picked from commit 17e756b)1 parent 0fbf660 commit cf204f2
File tree
2 files changed
+21
-1
lines changed- lib/IRGen
- test/IRGen
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5019 | 5019 | | |
5020 | 5020 | | |
5021 | 5021 | | |
| 5022 | + | |
| 5023 | + | |
5022 | 5024 | | |
5023 | 5025 | | |
5024 | 5026 | | |
| |||
5125 | 5127 | | |
5126 | 5128 | | |
5127 | 5129 | | |
5128 | | - | |
5129 | 5130 | | |
5130 | 5131 | | |
5131 | 5132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments