]> git.ipfire.org Git - thirdparty/gcc.git/commit
analyzer: handle NULL inner context in region_model_context_decorator
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 22 Aug 2023 01:13:18 +0000 (21:13 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 22 Aug 2023 01:13:18 +0000 (21:13 -0400)
commit1e7b0a5d7a45dc5932992d36e1375582d61269e4
treee020c6f313164d90d953085ff0998099b5bbee71
parent2503dd59b588d3f941c7df945ed41c40bb3a147f
analyzer: handle NULL inner context in region_model_context_decorator

gcc/analyzer/ChangeLog:
* region-model.cc (region_model_context_decorator::add_event):
Handle m_inner being NULL.
* region-model.h (class region_model_context_decorator): Likewise.
(annotating_context::warn): Likewise.

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