]> granicus.if.org Git - clang/commitdiff
[arcmt] Make PropertiesRewriter::getPropertyType return the unqualified type.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 6 Nov 2011 18:58:07 +0000 (18:58 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 6 Nov 2011 18:58:07 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143884 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ARCMigrate/TransProperties.cpp

index 85eb156935c547b98916ea62657c63b74f8c2efc..1512e4e96d38840433b305cec6709365f09c0b12 100644 (file)
@@ -125,8 +125,7 @@ public:
            I = AtProps.begin(), E = AtProps.end(); I != E; ++I) {
       SourceLocation atLoc = SourceLocation::getFromRawEncoding(I->first);
       PropsTy &props = I->second;
-      QualType ty = getPropertyType(props);
-      if (!ty->isObjCRetainableType())
+      if (!getPropertyType(props)->isObjCRetainableType())
         continue;
       if (hasIvarWithExplicitOwnership(props))
         continue;
@@ -486,11 +485,11 @@ private:
 
   QualType getPropertyType(PropsTy &props) const {
     assert(!props.empty());
-    QualType ty = props[0].PropD->getType();
+    QualType ty = props[0].PropD->getType().getUnqualifiedType();
 
 #ifndef NDEBUG
     for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
-      assert(ty == I->PropD->getType());
+      assert(ty == I->PropD->getType().getUnqualifiedType());
 #endif
 
     return ty;