DianQK
d20e4a1d68
[DebugInfo] Fix potential CU mismatch for attachRangesOrLowHighPC
...
When a CU attaches some ranges for a subprogram or an inlined code, the CU should be that of the subprogram/inlined code that was emitted.
If not, then these emitted ranges will use the incorrect base of the CU in `emitRangeList`.
A reproducible example is:
When linking these two LLVM IRs, dsymutil will report no mapping for range or inconsistent range data warnings.
`foo.swift`
```swift
import AppKit.NSLayoutConstraint
public class Foo {
public var c: Int {
get {
Int(NSLayoutConstraint().constant)
}
set {
}
}
}
```
`main.swift`
```swift
// no mapping for range
let f: Foo! = nil
// inconsistent range data
//let l: Foo = Foo()
```
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D136039
2022-10-22 21:22:01 +08:00
..
2022-10-12 12:49:17 +02:00
2022-10-12 12:49:17 +02:00
2022-10-12 12:49:17 +02:00
2022-10-12 12:49:17 +02:00
2022-10-12 12:49:17 +02:00
2022-10-12 12:49:17 +02:00
2021-03-24 09:12:53 +00:00
2021-05-24 04:33:41 -04:00
2020-11-20 17:58:26 -05:00
2021-10-08 12:06:38 -04:00
2022-10-12 12:49:17 +02:00
2022-10-12 12:49:17 +02:00
2022-10-07 11:56:02 -07:00
2021-10-31 09:49:10 -04:00
2022-06-18 00:52:34 +00:00
2022-10-05 11:18:44 -07:00
2022-10-22 21:22:01 +08:00
2021-12-09 09:05:36 -05:00
2021-12-24 00:47:04 +02:00
2021-10-31 09:49:10 -04:00
2021-05-24 19:43:40 +02:00
2021-05-24 19:43:40 +02:00
2021-10-31 09:49:10 -04:00
2021-04-22 12:03:33 +01:00
2021-05-24 19:43:40 +02:00
2021-12-24 00:47:04 +02:00
2021-10-26 23:42:50 -04:00
2021-12-16 12:35:16 -05:00
2021-10-08 12:06:38 -04:00
2021-10-08 12:06:38 -04:00
2021-10-08 12:06:38 -04:00
2021-12-24 00:47:04 +02:00
2021-10-08 12:06:38 -04:00
2021-10-08 12:06:38 -04:00
2021-10-08 12:06:38 -04:00
2021-10-08 12:06:38 -04:00
2021-09-04 15:52:43 -07:00
2021-09-04 15:52:43 -07:00
2021-09-04 15:52:43 -07:00
2021-09-04 15:52:43 -07:00
2021-05-24 19:43:40 +02:00
2021-10-08 11:55:12 -04:00
2021-05-24 19:43:40 +02:00
2021-10-31 09:49:10 -04:00
2021-11-28 21:55:27 -05:00
2022-02-01 11:18:19 -05:00
2022-10-12 12:49:17 +02:00
2021-10-08 12:06:38 -04:00
2021-10-08 11:55:12 -04:00
2021-10-31 09:49:10 -04:00
2022-01-17 09:28:36 +01:00
2021-05-24 19:43:40 +02:00
2021-10-31 09:49:10 -04:00
2022-10-12 12:49:17 +02:00
2021-12-24 00:47:04 +02:00
2021-05-24 19:43:40 +02:00
2021-12-24 00:47:04 +02:00
2022-07-25 11:20:36 +02:00
2021-05-24 19:43:40 +02:00
2021-05-24 19:43:40 +02:00
2021-05-24 19:43:40 +02:00
2021-05-24 19:43:40 +02:00
2021-04-19 11:06:53 +01:00
2022-10-07 14:54:34 -07:00
2022-09-30 09:12:35 +00:00
2021-12-09 09:05:36 -05:00
2021-11-17 11:51:29 +00:00
2021-10-31 09:49:10 -04:00
2022-03-22 16:46:48 +04:00
2021-11-16 09:15:00 -05:00
2021-10-31 09:49:10 -04:00
2021-10-31 09:49:10 -04:00
2022-10-03 17:11:54 +08:00
2022-08-30 10:03:53 +01:00
2021-10-08 11:55:12 -04:00
2021-10-31 09:49:10 -04:00
2021-10-31 09:49:10 -04:00
2022-02-01 11:18:19 -05:00
2022-02-21 11:23:15 +01:00
2022-07-20 13:57:11 -04:00
2022-10-12 12:49:17 +02:00
2022-10-12 12:49:17 +02:00
2021-10-31 09:49:10 -04:00
2021-10-31 09:49:10 -04:00
2021-10-08 12:06:38 -04:00
2021-10-31 09:49:10 -04:00
2022-06-18 00:52:34 +00:00
2022-02-01 11:18:19 -05:00
2021-05-24 19:43:40 +02:00
2022-02-01 11:18:19 -05:00
2020-10-29 15:40:55 +00:00
2021-05-24 19:43:40 +02:00