Changing the return type for a function after construction

Is there any way to change the return type of a function after constructing one?

Thanks,
Robert

Nope. Once created, you can't change the type of a Value. The best way to do this is to create a new function, splice the body of the old over (a constant time operation) and update the new one. Take a look at the dead argument elimination pass for some example code.

-Chris