diff options
author | Alex Zinenko <zinenko@google.com> | 2020-11-06 11:00:13 +0100 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2020-11-06 19:02:35 +0100 |
commit | b9c353fabb3276c9ec1c202f28559d37c8092739 (patch) | |
tree | de6adb0740dc5185101d3027ed135c05baf3e839 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | bb9b5d39712e39e15b22b36e8138075cea0cd7b5 (diff) | |
download | llvm-b9c353fabb3276c9ec1c202f28559d37c8092739.zip llvm-b9c353fabb3276c9ec1c202f28559d37c8092739.tar.gz llvm-b9c353fabb3276c9ec1c202f28559d37c8092739.tar.bz2 |
[mlir] Use PyValue instead of PyOpResult in Python operand container
The PyOpOperands container was erroneously constructing objects for
individual operands as PyOpResult. Operands in fact are just values,
which may or may not be results of another operation. The code would
eventually crash if the operand was a block argument. Add a test that
exercises the behavior that previously led to crashes.
Reviewed By: stellaraccident
Differential Revision: https://reviews.llvm.org/D90917
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions