diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index af96c0672b6..c72d2a3070b 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -737,7 +737,9 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) { break; } - FunctionType* FT = cast<FunctionType>(FD->getType()); + // [PR 3337] Use 'getDesugaredType' to strip away any typedefs on the + // function's type. + FunctionType* FT = cast<FunctionType>(FD->getType()->getDesugaredType()); const char* FName = FD->getIdentifier()->getName(); // Inspect the result type. |

