This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Avoid double space print on llvm global op
ClosedPublic

Authored by bondhugula on Sep 9 2021, 4:56 AM.

Details

Summary

Fix extra space print for llvm global op when the 'unamed_addr'
attribute was empty. This led to two spaces being printed in the custom
form between non-whitespace chars. A round trip would add an extra space
to a typical spaced form. NFC.

Diff Detail

Event Timeline

bondhugula created this revision.Sep 9 2021, 4:56 AM
bondhugula requested review of this revision.Sep 9 2021, 4:56 AM
bondhugula updated this revision to Diff 371556.Sep 9 2021, 5:05 AM

Drop white space change to test case. Not really needed.

ftynse accepted this revision.Sep 9 2021, 5:20 AM
This revision is now accepted and ready to land.Sep 9 2021, 5:20 AM
This revision was automatically updated to reflect the committed changes.