llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

DIE address ranges are not contained in its parent's ranges when use LTO

Open DianQK opened this issue 2 years ago • 1 comments

When linking these two LLVM IRs, dsymutil will report no mapping for range or inconsistent range data warnings.

foo.swift

import AppKit.NSLayoutConstraint

public class Foo {
    
    public var c: Int {
        get {
            Int(NSLayoutConstraint().constant)
        }
        set {
        }
    }

}

main.swift

// no mapping for range
let f: Foo! = nil
// inconsistent range data
//let l: Foo = Foo()

I made an Xcode project for this example.

no-mapping-for-range.zip

And https://reviews.llvm.org/D136039 should fix the issue.

DianQK avatar Oct 16 '22 15:10 DianQK

@llvm/issue-subscribers-debuginfo

llvmbot avatar Oct 16 '22 15:10 llvmbot

FWIW, You don't need to file bugs for issues already under review - you can attach extra info/etc to the review & it's probably easier to keep all the discussion in one place when that happens.

dwblaikie avatar Oct 17 '22 23:10 dwblaikie

Okay, I closed the issue.

DianQK avatar Oct 18 '22 01:10 DianQK