Fix visitInvokeInst to call visitTerminatorInst, and remove