File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1920,11 +1920,9 @@ ParameterList *ClangImporter::Implementation::importFunctionParameterList(
1920
1920
Type swiftParamTy;
1921
1921
bool isParamTypeImplicitlyUnwrapped = false ;
1922
1922
bool isInOut = false ;
1923
-
1924
- auto referenceType = dyn_cast<clang::ReferenceType>(paramTy);
1925
- if (referenceType &&
1926
- isa<clang::TemplateTypeParmType>(referenceType->getPointeeType ())) {
1927
- auto pointeeType = referenceType->getPointeeType ();
1923
+ if ((isa<clang::ReferenceType>(paramTy) || isa<clang::PointerType>(paramTy)) &&
1924
+ isa<clang::TemplateTypeParmType>(paramTy->getPointeeType ())) {
1925
+ auto pointeeType = paramTy->getPointeeType ();
1928
1926
auto templateParamType = cast<clang::TemplateTypeParmType>(pointeeType);
1929
1927
PointerTypeKind pointerKind = pointeeType.getQualifiers ().hasConst ()
1930
1928
? PTK_UnsafePointer
You can’t perform that action at this time.
0 commit comments