This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] reuse variable in printf string conv
ClosedPublic

Authored by michaelrj on Jul 12 2023, 1:14 PM.

Details

Summary

The amount of spaces to pad with is stored in the variable
padding_spaces, previously the actual write calls used the same formula
to calculate the value. This simplifies and clarifies the values by just
reusing the variable.

Diff Detail

Event Timeline

michaelrj created this revision.Jul 12 2023, 1:14 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 12 2023, 1:14 PM
michaelrj requested review of this revision.Jul 12 2023, 1:14 PM
lntue accepted this revision.Jul 13 2023, 3:11 PM
This revision is now accepted and ready to land.Jul 13 2023, 3:11 PM
This revision was landed with ongoing or failed builds.Jul 18 2023, 4:31 PM
This revision was automatically updated to reflect the committed changes.