remove bitcasts that were introduced while legalizing functions in i64 legalization of functions