Fix typo in pref commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66433 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index ffc40b9..9922d82 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -1864,7 +1864,7 @@
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;