[mlir] fix crash when scf utils work on llvm.func (#120688)
commit701f2409befa7d44aea0c31494ac0d3a5d18415e
authordonald chen <chenxunyu1993@gmail.com>
Fri, 20 Dec 2024 09:03:57 +0000 (20 17:03 +0800)
committerGitHub <noreply@github.com>
Fri, 20 Dec 2024 09:03:57 +0000 (20 17:03 +0800)
treea0f60e7361c1bad2af0de0d801ca71fd2b8e3789
parent44726489988a27c3cbd2f94188a2363e2080e045
[mlir] fix crash when scf utils work on llvm.func (#120688)

fixed https://github.com/llvm/llvm-project/issues/119378
mlir/lib/Dialect/SCF/Utils/Utils.cpp
mlir/test/Transforms/scf-if-utils.mlir
mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp