summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-06 18:58:07 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-06 18:58:07 +0000
commitaa421ea8af28cd2a8ecb64310b9ecf9d70c9bb37 (patch)
treee7798a6e97b340f632276532458dea7cf086c819 /clang/lib
parente43ae79038cacc883e0a1fd0aaf0b0a6034f1346 (diff)
downloadbcm5719-llvm-aa421ea8af28cd2a8ecb64310b9ecf9d70c9bb37.tar.gz
bcm5719-llvm-aa421ea8af28cd2a8ecb64310b9ecf9d70c9bb37.zip
[arcmt] Make PropertiesRewriter::getPropertyType return the unqualified type.
llvm-svn: 143884
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/ARCMigrate/TransProperties.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/ARCMigrate/TransProperties.cpp b/clang/lib/ARCMigrate/TransProperties.cpp
index 85eb156935c..1512e4e96d3 100644
--- a/clang/lib/ARCMigrate/TransProperties.cpp
+++ b/clang/lib/ARCMigrate/TransProperties.cpp
@@ -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;
OpenPOWER on IntegriCloud