mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Fix unreachable hit in DocumentStructureWalker
Resolves rdar://problem/61967092
This commit is contained in:
@@ -1363,8 +1363,10 @@ public:
|
||||
// We only vend the selector name for @IBAction and @IBSegueAction methods.
|
||||
if (auto FuncD = dyn_cast_or_null<FuncDecl>(D)) {
|
||||
if (FuncD->getAttrs().hasAttribute<IBActionAttr>() ||
|
||||
FuncD->getAttrs().hasAttribute<IBSegueActionAttr>())
|
||||
return FuncD->getObjCSelector().getString(Buf);
|
||||
FuncD->getAttrs().hasAttribute<IBSegueActionAttr>()) {
|
||||
return FuncD->getObjCSelector(DeclName(), /*skipIsObjCResolution*/true)
|
||||
.getString(Buf);
|
||||
}
|
||||
}
|
||||
return StringRef();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user