aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index ffc40b943b..9922d82fc2 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -1864,7 +1864,7 @@ CGObjCCommonMac::CreateMetadataVar(const std::string &Name,
if (Section)
GV->setSection(Section);
if (SetAlignment)
- GV->setAlignment(CGM.getTargetData().getPreferredAlignment(Ty));
+ GV->setAlignment(CGM.getTargetData().getPrefTypeAlignment(Ty));
if (IsUsed)
UsedGlobals.push_back(GV);
return GV;