diff options
| author | Felix Schneider <fx.schn@gmail.com> | 2024-07-07 18:09:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-07 18:09:24 +0200 |
| commit | c65f8d881671c3c7966fbbc967b7c4ca063d989b (patch) | |
| tree | c8d10a614e6a5019bfc2454a6cfdea9e214360e4 /llvm/lib/Object/COFFModuleDefinition.cpp | |
| parent | 902fb1b4653d5a23613492406cd5693446f06ab6 (diff) | |
| download | llvm-c65f8d881671c3c7966fbbc967b7c4ca063d989b.zip llvm-c65f8d881671c3c7966fbbc967b7c4ca063d989b.tar.gz llvm-c65f8d881671c3c7966fbbc967b7c4ca063d989b.tar.bz2 | |
[mlir][linalg] Fix crashes in parser on linalg ops without operands (#97944)
`parseDstStyleOp` parses both `ins()` and `outs()` optionally. The
parsers for `linalg.transpose`, `linalg.broadcast` and `linalg.map`
however assume that at least one operand is present in the state,
leading to crashes otherwise.
This patch adds checks to the parsers which stop them from crashing if
no operands were parsed. When the Ops are parsed successfuly, the
verifiers can work on them.
Fix https://github.com/llvm/llvm-project/issues/97857
Diffstat (limited to 'llvm/lib/Object/COFFModuleDefinition.cpp')
0 files changed, 0 insertions, 0 deletions
