Fix #ifdef in GetInstructionPtr function.