fix bitcast type when the input is an llvm function like getelementptr