================ @@ -2633,7 +2633,8 @@ BugPathGetter::BugPathGetter(const ExplodedGraph *OriginalGraph, assert(I->isValid() && "We only allow BugReporterVisitors and BugReporter itself to " "invalidate reports!"); - Nodes.emplace_back(I->getErrorNode()); + if (const ExplodedNode *ErrNode = I->getErrorNode()) ---------------- NagyDonat wrote:
Yes, I looked into it and you're right, it cannot be null. I eliminated the conditional and clarified the situation in commit https://github.com/llvm/llvm-project/pull/139939/commits/f6b4ef520af22f8437b8b6423e68dcfae81c8690 . Thanks for the tip! https://github.com/llvm/llvm-project/pull/139939 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits