On 9/8/22 20:45, Eugene Rozenfeld wrote:
Jason,

Thank for your suggestion. The patch is updated (attached).

@@ -467,12 +471,19 @@ lto_location_cache::apply_location_cache ()
            current_loc = set_block (current_loc, loc.block);
          else
            current_loc = LOCATION_LOCUS (current_loc);
+         if (loc.discr)
+           current_loc = location_with_discriminator (current_loc, loc.discr);
+       }
+      else if (current_discr != loc.discr)
+       {
+           current_loc = location_with_discriminator (current_loc, loc.discr);
        }

We usually don't use { } around a single line.

@@ -1180,6 +1206,7 @@ assign_discriminators (void)
       location_t locus = last ? gimple_location (last) : UNKNOWN_LOCATION;
if (locus == UNKNOWN_LOCATION)
+
        continue;

Stray newline.

OK with those tweaks.

Jason

Reply via email to