[PATCH] D108450: [clang][CodeGen] GetDefaultAlignTempAlloca uses preferred alignment
Andy Wingo via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 23 06:10:00 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4fb0c083429a: [clang][CodeGen] GetDefaultAlignTempAlloca uses preferred alignment (authored by wingo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108450/new/
https://reviews.llvm.org/D108450
Files:
clang/lib/CodeGen/CGExpr.cpp
Index: clang/lib/CodeGen/CGExpr.cpp
===================================================================
--- clang/lib/CodeGen/CGExpr.cpp
+++ clang/lib/CodeGen/CGExpr.cpp
@@ -122,7 +122,7 @@
Address CodeGenFunction::CreateDefaultAlignTempAlloca(llvm::Type *Ty,
const Twine &Name) {
CharUnits Align =
- CharUnits::fromQuantity(CGM.getDataLayout().getABITypeAlignment(Ty));
+ CharUnits::fromQuantity(CGM.getDataLayout().getPrefTypeAlignment(Ty));
return CreateTempAlloca(Ty, Align, Name);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108450.368082.patch
Type: text/x-patch
Size: 561 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210823/79233b21/attachment.bin>
More information about the cfe-commits
mailing list