diff options
author | Ayokunle Amodu <ayokunle321@gmail.com> | 2025-07-02 08:31:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-02 16:31:49 +0200 |
commit | 38ad6b1983e307b8c7620c8316ac95e66c04e86c (patch) | |
tree | c01dd2f99ffc120eef07d294069ab185bb666773 /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | 5491576a16230a770a507115af2c90f600a5d447 (diff) | |
download | llvm-38ad6b1983e307b8c7620c8316ac95e66c04e86c.zip llvm-38ad6b1983e307b8c7620c8316ac95e66c04e86c.tar.gz llvm-38ad6b1983e307b8c7620c8316ac95e66c04e86c.tar.bz2 |
[mlir][Affine] Fix crash in affine-loop-fusion pass by guarding against an empty op list (#144841)
Related: #139231
This patch fixes a crash in the affine-loop-fusion pass when
`getInnermostCommonLoop` is called with an empty list of operations.
The function expects at least one op to analyze, and passing an empty
array of ops causes an assertion failure. This change ensures the pass
checks for an empty op array before calling `getInnermostCommonLoop`.
@bondhugula @matthias-springer
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
0 files changed, 0 insertions, 0 deletions