https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111700

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>:

https://gcc.gnu.org/g:94caa6a6b4bd73b6c2bf3ab5e43ca42c5da4287a

commit r14-4474-g94caa6a6b4bd73b6c2bf3ab5e43ca42c5da4287a
Author: David Malcolm <dmalc...@redhat.com>
Date:   Sun Oct 8 18:43:15 2023 -0400

    diagnostics: fix ICE on sarif output when source file is unreadable
[PR111700]

    gcc/ChangeLog:
            PR driver/111700
            * input.cc (file_cache::add_file): Update leading comment to
            clarify that it can fail.
            (file_cache::lookup_or_add_file): Likewise.
            (file_cache::get_source_file_content): Gracefully handle
            lookup_or_add_file failing.

    gcc/testsuite/ChangeLog:
            PR driver/111700
            * c-c++-common/diagnostic-format-sarif-file-pr111700.c: New test.

    Signed-off-by: David Malcolm <dmalc...@redhat.com>

Reply via email to