File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
branches/master-next/lib/ClangImporter Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3
- refs/heads/master-next: c063e94412f6fd2a383d24144863fac3696a65d2
3
+ refs/heads/master-next: 0db092c46cf16a6c1983494ece86727f7187a12c
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
6
6
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07
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