Skip to content

Commit fbc9ed1

Browse files
committed
---
yaml --- r: 349397 b: refs/heads/master-next c: 0db092c h: refs/heads/master i: 349395: 50c0796
1 parent e04a6d2 commit fbc9ed1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: c063e94412f6fd2a383d24144863fac3696a65d2
3+
refs/heads/master-next: 0db092c46cf16a6c1983494ece86727f7187a12c
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/lib/ClangImporter/DWARFImporter.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ void ClangImporter::Implementation::lookupValueDWARF(
138138
return;
139139

140140
SmallVector<clang::Decl *, 4> decls;
141-
DWARFImporter->lookupValue(name.getBaseIdentifier().str(), llvm::None, decls);
141+
DWARFImporter->lookupValue(name.getBaseIdentifier().str(), None, decls);
142142
for (auto *clangDecl : decls) {
143-
auto *namedDecl = dyn_cast_or_null<clang::NamedDecl>(clangDecl);
143+
auto *namedDecl = dyn_cast<clang::NamedDecl>(clangDecl);
144144
if (!namedDecl)
145145
continue;
146146
auto *swiftDecl = cast_or_null<ValueDecl>(
@@ -168,9 +168,7 @@ void ClangImporter::Implementation::lookupTypeDeclDWARF(
168168
!isa<clang::ObjCCompatibleAliasDecl>(clangDecl)) {
169169
continue;
170170
}
171-
auto *namedDecl = dyn_cast_or_null<clang::NamedDecl>(clangDecl);
172-
if (!namedDecl)
173-
continue;
171+
auto *namedDecl = cast<clang::NamedDecl>(clangDecl);
174172
Decl *importedDecl = cast_or_null<ValueDecl>(
175173
importDeclReal(namedDecl->getMostRecentDecl(), CurrentVersion));
176174

0 commit comments

Comments
 (0)