[cfe-commits] r152878 - /cfe/trunk/lib/ARCMigrate/Transforms.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Mar 15 17:10:35 PDT 2012
Author: akirtzidis
Date: Thu Mar 15 19:10:35 2012
New Revision: 152878
URL: http://llvm.org/viewvc/llvm-project?rev=152878&view=rev
Log:
[arcmt] iOS is always safe to use 'weak'. rdar://10950825
Modified:
cfe/trunk/lib/ARCMigrate/Transforms.cpp
Modified: cfe/trunk/lib/ARCMigrate/Transforms.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ARCMigrate/Transforms.cpp?rev=152878&r1=152877&r2=152878&view=diff
==============================================================================
--- cfe/trunk/lib/ARCMigrate/Transforms.cpp (original)
+++ cfe/trunk/lib/ARCMigrate/Transforms.cpp Thu Mar 15 19:10:35 2012
@@ -74,6 +74,10 @@
if (T.isNull())
return false;
+ // iOS is always safe to use 'weak'.
+ if (Ctx.getTargetInfo().getTriple().getOS() == llvm::Triple::IOS)
+ AllowOnUnknownClass = true;
+
while (const PointerType *ptr = T->getAs<PointerType>())
T = ptr->getPointeeType();
if (const ObjCObjectPointerType *ObjT = T->getAs<ObjCObjectPointerType>()) {
More information about the cfe-commits
mailing list