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 @@ -136,9 +136,9 @@ void ClangImporter::Implementation::lookupValueDWARF(
136
136
return ;
137
137
138
138
SmallVector<clang::Decl *, 4 > decls;
139
- DWARFImporter->lookupValue (name.getBaseIdentifier ().str (), llvm:: None, decls);
139
+ DWARFImporter->lookupValue (name.getBaseIdentifier ().str (), None, decls);
140
140
for (auto *clangDecl : decls) {
141
- auto *namedDecl = dyn_cast_or_null <clang::NamedDecl>(clangDecl);
141
+ auto *namedDecl = dyn_cast <clang::NamedDecl>(clangDecl);
142
142
if (!namedDecl)
143
143
continue ;
144
144
auto *swiftDecl = cast_or_null<ValueDecl>(
@@ -166,9 +166,7 @@ void ClangImporter::Implementation::lookupTypeDeclDWARF(
166
166
!isa<clang::ObjCCompatibleAliasDecl>(clangDecl)) {
167
167
continue ;
168
168
}
169
- auto *namedDecl = dyn_cast_or_null<clang::NamedDecl>(clangDecl);
170
- if (!namedDecl)
171
- continue ;
169
+ auto *namedDecl = cast<clang::NamedDecl>(clangDecl);
172
170
Decl *importedDecl = cast_or_null<ValueDecl>(
173
171
importDeclReal (namedDecl->getMostRecentDecl (), CurrentVersion));
174
172
You can’t perform that action at this time.
0 commit comments