Skip to content

Handle VarDebugInfoContents::Composite in GotocCtx::find_debug_info #1933

@zhassan-aws

Description

@zhassan-aws

The Composite variant of the VarDebugInfoContents enum was added in rust-lang/rust#102570, and is concerned with the scalar replacement of aggregates (SROA) MIR optimization that is only enabled with --mir-opt-level=3 or higher.

In #1927, we handled this new variant by considering it to not match the debug info for any Local, which would result in the callers (codegen_var_base_name and codegen_var_name) producing a name that excludes the variable name from the debug info. We need to figure out if this is OK to do, e.g. by experimenting with one of the unit tests in rust-lang/rust#102570.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] InternalTracks some internal work. I.e.: Users should not be affected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions