summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authormydeveloperday <mydeveloperday@gmail.com>2021-06-26 13:28:34 +0100
committermydeveloperday <mydeveloperday@gmail.com>2021-06-26 13:29:16 +0100
commitee3b2c47ce41aeabede85d96e43bee33be73aa2f (patch)
tree1a027edc89a1a501a431c831fc927c4ffda6fded /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent991a88b177311822fa89e6257911be95f3c07c45 (diff)
[clang-format] PR50525 doesn't handle AlignConsecutiveAssignments correctly in some situations
https://bugs.llvm.org/show_bug.cgi?id=50525 AlignConsecutiveAssignments/Declarations cause incorrect alignment in the presence of a DesignatedInitializerPeriod (https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html) ``` static NTSTATUS stg(PLW_STREAM Stream, int identity) { NTSTATUS status; BYTE payload[256] = {'l', 'h', 'o', 't', 's', 'e'}; struct dm_rpc_header header = {.drh_magic = DRH_MAGIC, .drh_op_code = RPC_OP_ECHO, .drh_payload_size = sizeof(payload), .drh_body_size = sizeof(payload), .drh_request_id = 1}; header.drh_version = identity; ``` This fix addresses that by ensuring the period isn't ignored Reviewed By: HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D104900
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions