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)
commita5af238343e77f405cbed7b751f24fe6c3b101b7
tree406f1763c512c382baa807f89f978398538ee630
parent41ac83de6aded1daf983f86a9bf0409d4e383d84
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.

llvm-svn: 368471
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/cf-runtime-abi.c