-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Milestone
Description
I occasionally get the order of params wrong to a store, passing the pointer in place of the value and vice versa. It would be neat if this panic'd.
Status: we agreed that typechecking is useful thing to do.
Progress: partially done, but only attacking things as they crop up. Feel free to comment to add to the list.
- trunc (done in Panic if trunc operands are not compatible #71)
- insertvalue (done in Type check elem in insertvalue #70)
- store (done in Type check NewStore operands #72 - BUT are vector operands legal?)
- load (beware vector operands)
- bitcast
- inttoptr, ptrtoint
- inlineasm type parameter must be a func type (or pointer(?) depending on ir: allow callee of function type in NewCall #74 discussion).