remove cast from emit_libcall_block