Add one more defensive check to prevent crashes on trying to simplify a SymSymExpr with different Loc-ness of operands. This fix is similar to D49703 and addresses a regression caused by D48650.
When an operation between a nonloc::LocAsInteger and a non-pointer symbol is performed, the LocAsInteger-specific part of information is lost. When the non-pointer symbol is collapsing into a constant, we cannot easily re-evaluate the result, because we need to recover the missing LocAsInteger-specific information (eg., integer type, or the very fact that this pointer was at some point converted to an integer).
could we eliminate the code duplication with lines 1308-1310?