Skip to content

Debug information generated for lexical blocks is incorrect. #7819

Closed
@michaelwoerister

Description

@michaelwoerister

debuginfo::block() uses the provided trans::common::block for creating lexical block DIEs. trans::common::block, however, corresponds to LLVM basic blocks and not to rust lexical blocks.

A possible direction towards correcting this could be to look at the scope_info field in trans::common::block or to get ahold of the correct ast::blk somehow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions