File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,9 @@ void ClangImporter::Implementation::lookupValueDWARF(
138
138
return ;
139
139
140
140
SmallVector<clang::Decl *, 4 > decls;
141
- DWARFImporter->lookupValue (name.getBaseIdentifier ().str (), llvm:: None, decls);
141
+ DWARFImporter->lookupValue (name.getBaseIdentifier ().str (), None, decls);
142
142
for (auto *clangDecl : decls) {
143
- auto *namedDecl = dyn_cast_or_null <clang::NamedDecl>(clangDecl);
143
+ auto *namedDecl = dyn_cast <clang::NamedDecl>(clangDecl);
144
144
if (!namedDecl)
145
145
continue ;
146
146
auto *swiftDecl = cast_or_null<ValueDecl>(
@@ -168,9 +168,7 @@ void ClangImporter::Implementation::lookupTypeDeclDWARF(
168
168
!isa<clang::ObjCCompatibleAliasDecl>(clangDecl)) {
169
169
continue ;
170
170
}
171
- auto *namedDecl = dyn_cast_or_null<clang::NamedDecl>(clangDecl);
172
- if (!namedDecl)
173
- continue ;
171
+ auto *namedDecl = cast<clang::NamedDecl>(clangDecl);
174
172
Decl *importedDecl = cast_or_null<ValueDecl>(
175
173
importDeclReal (namedDecl->getMostRecentDecl (), CurrentVersion));
176
174
You can’t perform that action at this time.
0 commit comments