Skip to content

Commit 9876c39

Browse files
authored
Merge pull request #9915 from github/redsun82/swift-fixes
Swift: small dispatcher fixes
2 parents e140d2a + 985237a commit 9876c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift/extractor/infra/SwiftDispatcher.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class SwiftDispatcher {
215215

216216
template <typename... Args>
217217
void emitDebugInfo(const Args&... args) {
218-
trap.debug(std::forward<Args>(args)...);
218+
trap.debug(args...);
219219
}
220220

221221
// In order to not emit duplicated entries for declarations, we restrict emission to only
@@ -315,7 +315,7 @@ class SwiftDispatcher {
315315
virtual void visit(swift::TypeBase* type) = 0;
316316

317317
void visit(const FilePath& file) {
318-
auto entry = createEntry(file);
318+
auto entry = createEntry(file, file.path);
319319
entry.name = file.path;
320320
emit(entry);
321321
}

0 commit comments

Comments
 (0)