We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76e01b8 commit 87878c5Copy full SHA for 87878c5
tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp
@@ -1170,7 +1170,7 @@ static ValueDecl *getCursorInfoDeclForLiteral(Expr *E) {
1170
1171
// We shouldn’t report the builtin initializer to the user because it’s
1172
// underscored and not visible. Instead, return the type of the literal.
1173
- if (IsObjectLiteral || dyn_cast<BuiltinLiteralExpr>(E)) {
+ if (IsObjectLiteral || isa<BuiltinLiteralExpr>(E)) {
1174
Type Ty = E->getType();
1175
if (!Ty) {
1176
return nullptr;
0 commit comments