aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFModuleDefinition.cpp
diff options
context:
space:
mode:
authorFelix Schneider <fx.schn@gmail.com>2024-07-07 18:09:24 +0200
committerGitHub <noreply@github.com>2024-07-07 18:09:24 +0200
commitc65f8d881671c3c7966fbbc967b7c4ca063d989b (patch)
treec8d10a614e6a5019bfc2454a6cfdea9e214360e4 /llvm/lib/Object/COFFModuleDefinition.cpp
parent902fb1b4653d5a23613492406cd5693446f06ab6 (diff)
downloadllvm-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