aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
diff options
context:
space:
mode:
authorKarthika Devi C <quic_kartc@quicinc.com>2024-11-01 11:15:24 +0530
committerGitHub <noreply@github.com>2024-11-01 11:15:24 +0530
commit4cb71701994e129c1beca77134b39137ea8752c3 (patch)
tree369fc7f6aa2b286c322151c5f3dff7d2c36d39b2 /llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp
parent7ec26b23f27f2adfe6847bc69debb84efa34ed08 (diff)
downloadllvm-4cb71701994e129c1beca77134b39137ea8752c3.zip
llvm-4cb71701994e129c1beca77134b39137ea8752c3.tar.gz
llvm-4cb71701994e129c1beca77134b39137ea8752c3.tar.bz2
[polly] Add nullptr check to fix #113772 (#114206)
The patch adds a nullptr check before accessing the loop blocks in 'hasPossiblyDistributableLoop' function. The existing check for the loop’s containment in the region does not capture nullptr cases when the region covers the entire function. Therefore, it’s better to exit if the basic block isn’t part of any loop Fixes #113772.
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions