[all-commits] [llvm/llvm-project] 4d4e18: [libc][NFC] reuse variable in printf string conv
michaelrj-google via All-commits
all-commits at lists.llvm.org
Tue Jul 18 16:31:11 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d4e18f4ac675bf60b06f6518e56145e18d28026
https://github.com/llvm/llvm-project/commit/4d4e18f4ac675bf60b06f6518e56145e18d28026
Author: Michael Jones <michaelrj at google.com>
Date: 2023-07-18 (Tue, 18 Jul 2023)
Changed paths:
M libc/src/stdio/printf_core/char_converter.h
M libc/src/stdio/printf_core/string_converter.h
Log Message:
-----------
[libc][NFC] reuse variable in printf string conv
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.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D155113
More information about the All-commits
mailing list