[clang][CodeGen] GetDefaultAlignTempAlloca uses preferred alignment
authorAndy Wingo <wingo@igalia.com>
Wed, 4 Aug 2021 13:49:13 +0000 (15:49 +0200)
committerAndy Wingo <wingo@igalia.com>
Mon, 23 Aug 2021 12:55:58 +0000 (14:55 +0200)
commit4fb0c083429ad3119096b3fadf01954952b68a25
tree0386b5b06430fc48506bd57e3f665962b0ce9bd5
parent8da70fed704c15d9656cbf2df190122acb975921
[clang][CodeGen] GetDefaultAlignTempAlloca uses preferred alignment

This function was defaulting to use the ABI alignment for the LLVM
type.  Here we change to use the preferred alignment.  This will allow
unification with GetTempAlloca, which if alignment isn't specified, uses
the preferred alignment.

Differential Revision: https://reviews.llvm.org/D108450
clang/lib/CodeGen/CGExpr.cpp