Skip to content

Commit 2f00945

Browse files
committed
Swift: change the return types of getCanonicalPointer
1 parent 039aaec commit 2f00945

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

swift/extractor/trap/TrapLabelStore.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ namespace codeql {
1414

1515
// the following is needed to avoid the problem of subclass pointers not necessarily coinciding
1616
// with superclass ones in case of multiple inheritance
17-
inline const void* getCanonicalPtr(const swift::Decl* e) {
17+
inline const swift::Decl* getCanonicalPtr(const swift::Decl* e) {
1818
return e;
1919
}
20-
inline const void* getCanonicalPtr(const swift::Stmt* e) {
20+
inline const swift::Stmt* getCanonicalPtr(const swift::Stmt* e) {
2121
return e;
2222
}
23-
inline const void* getCanonicalPtr(const swift::Expr* e) {
23+
inline const swift::Expr* getCanonicalPtr(const swift::Expr* e) {
2424
return e;
2525
}
26-
inline const void* getCanonicalPtr(const swift::Pattern* e) {
26+
inline const swift::Pattern* getCanonicalPtr(const swift::Pattern* e) {
2727
return e;
2828
}
29-
inline const void* getCanonicalPtr(const swift::TypeRepr* e) {
29+
inline const swift::TypeRepr* getCanonicalPtr(const swift::TypeRepr* e) {
3030
return e;
3131
}
32-
inline const void* getCanonicalPtr(const swift::TypeBase* e) {
32+
inline const swift::TypeBase* getCanonicalPtr(const swift::TypeBase* e) {
3333
return e;
3434
}
3535

0 commit comments

Comments
 (0)