diff options
author | Rahul Joshi <jurahul@google.com> | 2020-12-02 16:49:47 -0800 |
---|---|---|
committer | Rahul Joshi <jurahul@google.com> | 2020-12-04 09:09:59 -0800 |
commit | fe7fdcac87be4ad3de34901eb6fb5746437610e8 (patch) | |
tree | 5260098c5bc214bcbd1d7f13e3c32a58115a3445 /llvm/lib/Support/JSON.cpp | |
parent | 245233423e466979e11b39cbed676903892d07f8 (diff) | |
download | llvm-fe7fdcac87be4ad3de34901eb6fb5746437610e8.zip llvm-fe7fdcac87be4ad3de34901eb6fb5746437610e8.tar.gz llvm-fe7fdcac87be4ad3de34901eb6fb5746437610e8.tar.bz2 |
[MLIR] Fix parseFunctionLikeOp() to fail parsing empty regions
- Change parseOptionalRegion to return an OptionalParseResult.
- Change parseFunctionLikeOp() to fail parsing if the function body was parsed but was
empty.
- See https://llvm.discourse.group/t/funcop-parsing-bug/2164
Differential Revision: https://reviews.llvm.org/D91886
Diffstat (limited to 'llvm/lib/Support/JSON.cpp')
0 files changed, 0 insertions, 0 deletions