llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) <details> <summary>Changes</summary> N is already of ExplodedNode *. --- Full diff: https://github.com/llvm/llvm-project/pull/146706.diff 1 Files Affected: - (modified) clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h (+3-2) ``````````diff diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h index e995151927c96..bd11e0d40cfa9 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h @@ -448,14 +448,15 @@ class ExplodedNodeSet { public: ExplodedNodeSet(ExplodedNode *N) { - assert(N && !static_cast<ExplodedNode*>(N)->isSink()); + assert(N && !N->isSink()); Impl.insert(N); } ExplodedNodeSet() = default; void Add(ExplodedNode *N) { - if (N && !static_cast<ExplodedNode*>(N)->isSink()) Impl.insert(N); + if (N && !N->isSink()) + Impl.insert(N); } using iterator = ImplTy::iterator; `````````` </details> https://github.com/llvm/llvm-project/pull/146706 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits