Skip to content

Commit b9662f1

Browse files
committed
AST: Don't need to call getCanonicalType() in TypeBase::isPlaceholder()
1 parent b3c16ea commit b9662f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bool TypeBase::isAny() {
165165
}
166166

167167
bool TypeBase::isPlaceholder() {
168-
return getCanonicalType()->is<PlaceholderType>();
168+
return is<PlaceholderType>();
169169
}
170170

171171
bool TypeBase::isAnyClassReferenceType() {

0 commit comments

Comments
 (0)