This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix block label parsing bug
ClosedPublic

Authored by bondhugula on Mar 11 2022, 6:15 PM.

Details

Summary

Fix bug in Block label parsing:
https://github.com/llvm/llvm-project/issues/54343

The parseOptionalBlockArgList method was doing the wrong thing
(contrary to its doc comment) and its calling context was also
incorrect. This led to a parse failure for something like "^bb0()".

Fixes #54343

Diff Detail

Event Timeline

bondhugula created this revision.Mar 11 2022, 6:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2022, 6:15 PM
bondhugula requested review of this revision.Mar 11 2022, 6:15 PM

Adjust parsing context.

clang-format and add an extra test case.

mehdi_amini accepted this revision.Mar 11 2022, 6:37 PM

Note if you write it in the description as Fixes #54343 it'll reference the commit and close the issues (the full URL instead of #54343 may work as well)

This revision is now accepted and ready to land.Mar 11 2022, 6:37 PM
bondhugula edited the summary of this revision. (Show Details)

Update commit summary to reference github issue.

bondhugula edited the summary of this revision. (Show Details)

Tweak summary.

This revision was automatically updated to reflect the committed changes.