[clang] [clang][dataflow] Fix casting in `ChromiumCheckModel`. (PR #101640)

2024-08-02 Thread Paul Semel via cfe-commits
https://github.com/paulsemel closed https://github.com/llvm/llvm-project/pull/101640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Fix casting in `ChromiumCheckModel`. (PR #101640)

2024-08-02 Thread Pasquale Riello via cfe-commits
https://github.com/Pask00 updated https://github.com/llvm/llvm-project/pull/101640 >From 7d1263ad9c72b638d4624173b128d24b1a4317a1 Mon Sep 17 00:00:00 2001 From: Pasquale Riello Date: Fri, 2 Aug 2024 08:59:07 + Subject: [PATCH 1/2] [clang][dataflow] Fix casting in `ChromiumCheckModel`. `get

[clang] [clang][dataflow] Fix casting in `ChromiumCheckModel`. (PR #101640)

2024-08-02 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/101640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Fix casting in `ChromiumCheckModel`. (PR #101640)

2024-08-02 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 270f5e42b8daab586ffcd2b46ff41486199f6626 7d1263ad9c72b638d4624173b128d24b1a4317a1 --e

[clang] [clang][dataflow] Fix casting in `ChromiumCheckModel`. (PR #101640)

2024-08-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Pasquale Riello (Pask00) Changes `getDirectCallee()` may return a null pointer if the callee is not a `FunctionDecl` (for example when using function pointers), this requires to use `dyn_cast_or_null` instead of `dyn_cast`. --- Full diff

[clang] [clang][dataflow] Fix casting in `ChromiumCheckModel`. (PR #101640)

2024-08-02 Thread Pasquale Riello via cfe-commits
https://github.com/Pask00 created https://github.com/llvm/llvm-project/pull/101640 `getDirectCallee()` may return a null pointer if the callee is not a `FunctionDecl` (for example when using function pointers), this requires to use `dyn_cast_or_null` instead of `dyn_cast`. >From 7d1263ad9c72b