Skip to content

[SR-6838] [DebugInfo] LoadableAddress breaks debug info #49387

Closed
@dcci

Description

@dcci
mannequin
Previous ID SR-6838
Radar rdar://problem/36876376
Original Reporter @dcci
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee @dcci
Priority Medium

md5: c650c29aa9f121dd72eddfc9dc4a2db7

Issue Description:

struct m {
    let major: Int
    let minor: Int
    let n: Int
    let o: [String]
    let p: [String]
    init(
        major: Int,
        minor: Int,
        n: Int,
        o: [String],
        p: [String]
    ) {
        self.major = major
        self.minor = minor
        self.n = n
        self.o = o
        self.p = p
    }
}
enum a {
    case any
    case b(m)
    }
 struct c<e>  {
     enum f{
        case g(a)
    }
    }
struct h<i>{
    typealias j = i
    typealias d = j
    typealias f = c<d>.f
    subscript(identifier: d) -> f {
        return .g(.any)
    }
    func k(
        l: f, identifier: d
    ) -> h{
        switch (l, self[identifier]) {
        default:
            return self
        }
    }
    }

cmdline:

./swift -frontend blah.swift -Onone -emit-ir -sil-verify-all -Xllvm -verify-di-holes

cc: @adrian-prantl/@vedantk/shajrawi (JIRA User)

On my plate, once I'm done with the resilience lldb work 🙂

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions