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
Description
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.