[MLIR] Add an assert in Operation::getOpResultImpl for out of range result
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 Revision: https://reviews.llvm.org/D147883
Loading
Please sign in to comment