tree-object-size: Avoid unnecessary processing of __builtin_object_size
commit30d6ff3916882c7af80f92e0030cedb0788572d3
authorSiddhesh Poyarekar <siddhesh@gotplt.org>
Mon, 18 Oct 2021 03:45:42 +0000 (18 09:15 +0530)
committerSiddhesh Poyarekar <siddhesh@gotplt.org>
Mon, 18 Oct 2021 13:34:16 +0000 (18 19:04 +0530)
treef1ba4aad88ceb3f710805dd41f2b74838d308c55
parentc9ff4581841f079e00d37fa7743021c62c935315
tree-object-size: Avoid unnecessary processing of __builtin_object_size

This is a minor cleanup to bail out early if the result of
__builtin_object_size is not assigned to anything and avoid initializing
the object size arrays.

gcc/ChangeLog:

* tree-object-size.c (object_sizes_execute): Consolidate LHS
null check and do it early.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
gcc/tree-object-size.c