This fix https://github.com/llvm/llvm-project/issues/61962.
Calling op->getResult(0) on a function like operation with no results
returned a garbage pointer.
This patch add assert to check number is in range.
Differential D147883
[MLIR] Add an assert in Operation::getOpResultImpl for out of range result xgupta on Apr 9 2023, 6:53 AM. Authored by
Details This fix https://github.com/llvm/llvm-project/issues/61962. Calling op->getResult(0) on a function like operation with no results This patch add assert to check number is in range.
Diff Detail
Event TimelineComment Actions Hi, It seems it broke buildbot for Dialect/SparseTensor/codegen.mlir test case and some other flang testcase also. I am not sure how to fix those, Someone with MLIR knowledge PTAL otherwise feel free to revert it if requires. Comment Actions (also: you have pre-merge testing happening on Phabricator revision that can hint at some of these before pushing) Comment Actions Thanks for the revert. Seems @frgossen fixed the SparseTensor issue, can someone from Flang team take a look at this buildbot - https://lab.llvm.org/buildbot/#/builders/197/builds/4476. |