We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660f74b commit b676a98Copy full SHA for b676a98
lib/IRGen/GenProto.cpp
@@ -1336,7 +1336,11 @@ class AccessorConformanceInfo : public ConformanceInfo {
1336
SILFunction *Func = entry.getMethodWitness().Witness;
1337
llvm::Constant *witness = nullptr;
1338
if (Func) {
1339
- witness = IGM.getAddrOfSILFunction(Func, NotForDefinition);
+ if (Func->isAsync()) {
1340
+ witness = IGM.getAddrOfAsyncFunctionPointer(Func);
1341
+ } else {
1342
+ witness = IGM.getAddrOfSILFunction(Func, NotForDefinition);
1343
+ }
1344
} else {
1345
// The method is removed by dead method elimination.
1346
// It should be never called. We add a pointer to an error function.
0 commit comments