aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/RetainSummaryManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/RetainSummaryManager.cpp')
-rw-r--r--lib/Analysis/RetainSummaryManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/RetainSummaryManager.cpp b/lib/Analysis/RetainSummaryManager.cpp
index 132053fd2c24..6f46917b2dfc 100644
--- a/lib/Analysis/RetainSummaryManager.cpp
+++ b/lib/Analysis/RetainSummaryManager.cpp
@@ -504,7 +504,7 @@ RetainSummaryManager::generateSummary(const FunctionDecl *FD,
FName = FName.substr(FName.find_first_not_of('_'));
// Inspect the result type. Strip away any typedefs.
- const auto *FT = FD->getType()->getAs<FunctionType>();
+ const auto *FT = FD->getType()->castAs<FunctionType>();
QualType RetTy = FT->getReturnType();
if (TrackOSObjects)