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 954fa87 commit 17d3bceCopy full SHA for 17d3bce
lib/IRGen/GenMeta.cpp
@@ -3119,8 +3119,13 @@ namespace {
3119
// The class is fragile. Emit a direct reference to the vtable entry.
3120
llvm::Constant *ptr;
3121
if (entry) {
3122
- ptr = IGM.getAddrOfSILFunction(entry->getImplementation(),
3123
- NotForDefinition);
+ if (entry->getImplementation()->isAsync()) {
+ ptr = IGM.getAddrOfAsyncFunctionPointer(entry->getImplementation(),
3124
+ NotForDefinition);
3125
+ } else {
3126
+ ptr = IGM.getAddrOfSILFunction(entry->getImplementation(),
3127
3128
+ }
3129
} else {
3130
// The method is removed by dead method elimination.
3131
// It should be never called. We add a pointer to an error function.
0 commit comments