Skip to content

Commit 64e43f6

Browse files
author
Marc Rasi
committed
fix compilation for 2019-07-10 merge
1 parent e434a18 commit 64e43f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,10 +2822,8 @@ static bool checkFunctionSignature(
28222822
return false;
28232823

28242824
// Erase dynamic self types.
2825-
required = dyn_cast<AnyFunctionType>(
2826-
required->eraseDynamicSelfType()->getCanonicalType());
2827-
candidateFnTy = dyn_cast<AnyFunctionType>(
2828-
candidateFnTy->eraseDynamicSelfType()->getCanonicalType());
2825+
required = dyn_cast<AnyFunctionType>(required->getCanonicalType());
2826+
candidateFnTy = dyn_cast<AnyFunctionType>(candidateFnTy->getCanonicalType());
28292827

28302828
// Check that generic signatures match.
28312829
auto requiredGenSig = required.getOptGenericSignature();

0 commit comments

Comments
 (0)