]> git.ipfire.org Git - thirdparty/gcc.git/commit
analyzer: prevent ICEs with null types
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 2 Apr 2024 21:42:16 +0000 (17:42 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 2 Apr 2024 21:42:16 +0000 (17:42 -0400)
commite945d322fcbc68f91388b1d1297bdf6a6c6fcbaa
treeb7b6363a0616a78a1a8b6bb2b6989d125e96cd60
parent21aa57e73b820395b7b01843d61ef5b84cd20d02
analyzer: prevent ICEs with null types

Fixes some ICEs seen analyzing the Linux kernel.

gcc/analyzer/ChangeLog:
* region-model-manager.cc (maybe_undo_optimize_bit_field_compare):
Guard against null types.
* region-model.cc (apply_constraints_for_gswitch): Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/analyzer/region-model-manager.cc
gcc/analyzer/region-model.cc