function.c (fixup_var_refs_1, case MEM): Update CODE after updating X.