[SP] Fix IsFinite usage with RelWithDebInfo.