Skip to content

Commit 87878c5

Browse files
author
Simon Barinka
committed
[SourceKit] Address minor PR comments
1 parent 76e01b8 commit 87878c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ static ValueDecl *getCursorInfoDeclForLiteral(Expr *E) {
11701170

11711171
// We shouldn’t report the builtin initializer to the user because it’s
11721172
// underscored and not visible. Instead, return the type of the literal.
1173-
if (IsObjectLiteral || dyn_cast<BuiltinLiteralExpr>(E)) {
1173+
if (IsObjectLiteral || isa<BuiltinLiteralExpr>(E)) {
11741174
Type Ty = E->getType();
11751175
if (!Ty) {
11761176
return nullptr;

0 commit comments

Comments
 (0)