Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Calling Instruction::getType yields a nullptr #2169

Open
@bertmaher

Description

@bertmaher

I just stumbled across this landmine, and I wonder if we could do some redesign of the types involved to avoid it: Instruction is a Value, and Value is a Typed, but if you actually call getType on an instruction, it's a nullptr. Something seems broken in this model. Maybe there are some Instructions that really are Typed but it doesn't seem like it holds generally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions