SIL bridging: work around an unresolved symbol linker error

Works around  problem https://github.com/apple/swift/issues/64502
This commit is contained in:
Erik Eckstein
2023-03-21 15:32:55 +01:00
parent 010efc1ca6
commit 67299b4471
4 changed files with 18 additions and 6 deletions

View File

@@ -1444,3 +1444,13 @@ bool BridgedPassContext::enableSimplificationFor(BridgedInstruction inst) const
}
return false;
}
// TODO: can't be inlined to work around https://github.com/apple/swift/issues/64502
CalleeList BridgedCalleeAnalysis::getCallees(BridgedValue callee) const {
return ca->getCalleeListOfValue(callee.getSILValue());
}
// TODO: can't be inlined to work around https://github.com/apple/swift/issues/64502
CalleeList BridgedCalleeAnalysis::getDestructors(SILType type, bool isExactType) const {
return ca->getDestructors(type, isExactType);
}