diff options
author | Menooker <myjisgreat@live.cn> | 2025-06-22 22:03:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-22 23:03:36 +0900 |
commit | ee5dcdc275b136172a5bfa85a098ae506a836c85 (patch) | |
tree | ba10db2c8284c92d06e006e4ad6e92090c41175d /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
parent | 96493c514efad52c9fce6db3b0abebf0e61ae93a (diff) | |
download | llvm-ee5dcdc275b136172a5bfa85a098ae506a836c85.zip llvm-ee5dcdc275b136172a5bfa85a098ae506a836c85.tar.gz llvm-ee5dcdc275b136172a5bfa85a098ae506a836c85.tar.bz2 |
[mlir] fix assertion failure in remove-dead-values (#144849)
Simple IR patterns will trigger assertion error:
```
func.func @test_zero_operands(%I: memref<10xindex>, %I2: memref<10xf32>) {
%v0 = arith.constant 0 : index
%result = memref.alloca_scope -> index {
%c = arith.addi %v0, %v0 : index
memref.store %c, %I[%v0] : memref<10xindex>
memref.alloca_scope.return %c: index
}
func.return
}
```
with error: `mlir/include/mlir/IR/Operation.h:988:
mlir::detail::OperandStorage& mlir::Operation::getOperandStorage():
Assertion `hasOperandStorage && "expected operation to have operand
storage"' failed.`
This PR will fix this issue.
---------
Co-authored-by: Andrzej WarzyĆski <andrzej.warzynski@gmail.com>
Co-authored-by: Mehdi Amini <joker.eph@gmail.com>
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions