diff options
author | Steven Wu <stevenwu@apple.com> | 2021-05-11 08:23:08 -0700 |
---|---|---|
committer | Steven Wu <stevenwu@apple.com> | 2021-05-11 08:23:55 -0700 |
commit | 4eff9469475384a59a9da407e78aa00262edcdd0 (patch) | |
tree | a5d56bb2277d2d7daa414fbc9304a4c9219fb34f /llvm/lib/TextAPI/Platform.cpp | |
parent | d6a228cba47ffb33d4f6814af1feaf49b34568d0 (diff) | |
download | llvm-4eff9469475384a59a9da407e78aa00262edcdd0.zip llvm-4eff9469475384a59a9da407e78aa00262edcdd0.tar.gz llvm-4eff9469475384a59a9da407e78aa00262edcdd0.tar.bz2 |
[IR][AutoUpgrade] Drop align attribute from void return types
Since D87304, `align` become an invalid attribute on none pointer types and
verifier will reject bitcode that has invalid `align` attribute.
The problem is before the change, DeadArgumentElimination can easily
turn a pointer return type into a void return type without removing
`align` attribute. Teach Autograde to remove invalid `align` attribute
from return types to maintain bitcode compatibility.
rdar://77022993
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D102201
Diffstat (limited to 'llvm/lib/TextAPI/Platform.cpp')
0 files changed, 0 insertions, 0 deletions