]> granicus.if.org Git - clang/commitdiff
Fix typo in pref commit.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 9 Mar 2009 20:16:39 +0000 (20:16 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 9 Mar 2009 20:16:39 +0000 (20:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66433 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index ffc40b943b2e629ba647ca3e7dc211060d8eadc7..9922d82fc2b5d2af73067241cd3d785cf79ba7d6 100644 (file)
@@ -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;