Fix a really terrifying but improbable bug in mem2reg. If you have seen