[PATCH] D74183: [IRGen] Add an alignment attribute to underaligned sret parameters
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 6 16:53:24 PST 2020
erik.pilkington created this revision.
erik.pilkington added reviewers: rjmccall, scanon.
Herald added subscribers: ributzka, dexonsmith, jkorous.
Without this, LLVM will assume the pointer has the type's alignment, which is undefined if the value is actually underaligned.
rdar://58316406
https://reviews.llvm.org/D74183
Files:
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGen/aligned-sret.c
clang/test/CodeGen/arm-varargs.c
clang/test/CodeGen/arm64-arguments.c
clang/test/CodeGen/arm64_32.c
clang/test/CodeGen/systemz-abi-vector.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74183.243051.patch
Type: text/x-patch
Size: 7067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200207/70b8a0a3/attachment.bin>
More information about the cfe-commits
mailing list