CodeGen: ensure 8-byte aligned String Swift CF ABI
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 Aug 2019 19:29:05 +0000 (19:29 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 9 Aug 2019 19:29:05 +0000 (19:29 +0000)
commitee5531b2162e8d696928cbd48f58d92740c1015e
treec8d611fdc333479e06df65125e1701ba1d7f5b65
parent14c49f8d7710c0006511d438f94628ea579672a7
CodeGen: ensure 8-byte aligned String Swift CF ABI

CFStrings should be 8-byte aligned when built for the Swift CF runtime
ABI as the atomic CF info field must be properly aligned.  This is a
problem on 32-bit platforms which would give the structure 4-byte
alignment rather than 8-byte alignment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/cf-runtime-abi.c