remove some unneeded calls to getCanonicalType
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54106 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 17ad448..319318f 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -1462,8 +1462,7 @@
QualType RetTy = RetE->getType();
// FIXME: We aren't handling id<...>.
- const PointerType* PT = RetTy.getCanonicalType()->getAsPointerType();
-
+ const PointerType* PT = RetTy->getAsPointerType();
if (!PT)
return RetTy;