Skip to content

compare rust type with llvm value in result, lval_result #2606

Closed

Description

@nikomatsakis

Right now in trans we have this result and lval_result that is the combination of a bcx and a value. It should also include the rust type of this value. This would make it possible to figure out, based solely on result and lval_result, whether something is stored on the stack or not. Right now we have to check if the kind is owned and if the type is immediate.

Activity

  1. catamorphism commented on Nov 15, 2012

    @catamorphism
    Contributor

    Seems like this is obsolete since trans uses datum now? Closing.

  2. added a commit that references this issue on Jan 6, 2023
  3. added a commit that references this issue on Jun 4, 2024
    ecd8957
  4. added a commit that references this issue on Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions