This is an archive of the discontinued LLVM Phabricator instance.

Don't crash on duplicate keys in dictionary attrs.
ClosedPublic

Authored by silvas on Apr 27 2020, 2:52 PM.

Diff Detail

Event Timeline

silvas created this revision.Apr 27 2020, 2:52 PM
Herald added a project: Restricted Project. · View Herald Transcript
rriddle requested changes to this revision.Apr 27 2020, 2:54 PM
rriddle added inline comments.
mlir/lib/Parser/Parser.cpp
1713

Do this during parsing above to give better error location and avoid the need to iterate.

This revision now requires changes to proceed.Apr 27 2020, 2:54 PM
silvas marked an inline comment as done.Apr 27 2020, 3:12 PM
rriddle accepted this revision.Apr 27 2020, 3:13 PM
rriddle added inline comments.
mlir/lib/Parser/Parser.cpp
1679

nit: uniquifier sounds weird, can we just do something like "usedNames"?

This revision is now accepted and ready to land.Apr 27 2020, 3:13 PM
silvas updated this revision to Diff 260473.Apr 27 2020, 3:22 PM

Update name.

This revision was automatically updated to reflect the committed changes.