Skip to content

Commit 47e2390

Browse files
committed
Sema: Use pointer equality instead of isSpelledLike() to compare sugar
1 parent 8939aad commit 47e2390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static void substituteInputSugarArgumentType(Type argTy, CanType resultTy,
6565

6666
// Make sure this argument's sugar is consistent with the sugar we
6767
// already found.
68-
if (argTy->isSpelledLike(resultSugarTy))
68+
if (argTy.getPointer() == resultSugarTy.getPointer())
6969
return;
7070
uniqueSugarTy = false;
7171
}

0 commit comments

Comments
 (0)