Fix event text like this (seen in gcc.dg/analyzer/allocation-size-5.c):
31 | char arr[sizeof (int16_t)];
| ^~~
| |
| (1) allocated 2 bytes hereallocated here
gcc/analyzer/ChangeLog:
* checker-event.cc
(region_creation_event_allocation_size::print_desc): Fix missing
"else" leading to stray trailing "allocated here" text in events.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
"allocated %qE bytes here",
m_capacity);
}
- pp_printf (&pp, "allocated here");
+ else
+ pp_printf (&pp, "allocated here");
}
void