aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authoroffsake <sergey.i.zverev@intel.com>2025-01-13 12:29:51 -0800
committerGitHub <noreply@github.com>2025-01-13 20:29:51 +0000
commit83be69cf9ade7e1f78df297518b1490d54794edc (patch)
treed1134d5b52e8b54fccdde8585a06e38985001d10 /clang/lib/Frontend/CompilerInvocation.cpp
parentc6c864da3fdfbe98f6302f209056fe3069d071ae (diff)
downloadllvm-83be69cf9ade7e1f78df297518b1490d54794edc.zip
llvm-83be69cf9ade7e1f78df297518b1490d54794edc.tar.gz
llvm-83be69cf9ade7e1f78df297518b1490d54794edc.tar.bz2
[VPlan][Coverity] Fix coverity CID1579964. (#121805)
Fix for the Coverity hit with CID1579964 in VPlan.cpp. Coverity message with some context follows. [Cov] var_compare_op: Comparing TermBr to null implies that TermBr might be null. 434 } else if (TermBr && !TermBr->isConditional()) { 435 TermBr->setSuccessor(0, NewBB); 436 } else { 437 // Set each forward successor here when it is created, excluding 438 // backedges. A backward successor is set when the branch is created. 439 unsigned idx = PredVPSuccessors.front() == this ? 0 : 1; [Cov] CID 1579964: (#1 of 1): Dereference after null check (FORWARD_NULL) [Cov] var_deref_model: Passing null pointer TermBr to getSuccessor, which dereferences it.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions