]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gimple-ssa-warn-access: add missing auto_diagnostic_group
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 11 Jun 2025 00:06:37 +0000 (20:06 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 11 Jun 2025 00:06:37 +0000 (20:06 -0400)
Spotted whilst implementing nesting support in the
experimental-html diagnostic sink.

gcc/ChangeLog:
* gimple-ssa-warn-access.cc
(pass_waccess::maybe_check_dealloc_call): Add missing
auto_diagnostic_group to nest the "returned from %qD"
note within the warning.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/gimple-ssa-warn-access.cc

index 305b63567feabcef685d9683d17bd7fcf3190036..0f4aff6b59b5653f753f0279b1d1de01ab3acbbd 100644 (file)
@@ -3767,6 +3767,7 @@ pass_waccess::maybe_check_dealloc_call (gcall *call)
 
       if (is_gimple_call (def_stmt))
        {
+         auto_diagnostic_group d;
          bool warned = false;
          if (gimple_call_alloc_p (def_stmt))
            {