This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Use PyValue instead of PyOpResult in Python operand container
ClosedPublic

Authored by ftynse on Nov 6 2020, 2:05 AM.

Details

Summary

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.

Diff Detail

Event Timeline

ftynse created this revision.Nov 6 2020, 2:05 AM
ftynse requested review of this revision.Nov 6 2020, 2:05 AM
stellaraccident accepted this revision.Nov 6 2020, 7:47 AM

Good catch

This revision is now accepted and ready to land.Nov 6 2020, 7:47 AM
This revision was landed with ongoing or failed builds.Nov 6 2020, 10:02 AM
This revision was automatically updated to reflect the committed changes.