ir: Replace copy false assert with panic.