bugpoint seems to generate a broken Module

Hi,

has anyone had any problem with a broken Module involving memcpy/memset argument types after some iterations of Bugpoint reduction? I run into this every now and then (on SystemZ), and would really like to know what's going wrong...

Please see https://bugs.llvm.org/show_bug.cgi?id=36424, where I reported this with examples.

Thank you,

Jonas