[PATCH] D62152: [ARM][AArch64] Fix incorrect handling of alignment in va_arg code generation
John Brawn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 20 09:42:42 PDT 2019
john.brawn created this revision.
john.brawn added reviewers: chill, efriedma, t.p.northover, rjmccall.
Herald added subscribers: kristof.beyls, javed.absar.
Herald added a project: clang.
Overaligned and underaligned types (i.e. types where the alignment has been increased or decreased using the aligned and packed attributes) weren't being correctly handled in all cases, as the unadjusted alignment should be used.
This patch also adjusts getTypeUnadjustedAlign to correctly handle typedefs of non-aggregate types, which it appears it never had to handle before.
Repository:
rC Clang
https://reviews.llvm.org/D62152
Files:
lib/AST/ASTContext.cpp
lib/CodeGen/TargetInfo.cpp
test/CodeGen/aarch64-varargs.c
test/CodeGen/arm-varargs.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62152.200317.patch
Type: text/x-patch
Size: 67800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190520/28800e66/attachment-0001.bin>
More information about the cfe-commits
mailing list