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 2d21932 commit 660f74bCopy full SHA for 660f74b
lib/IRGen/GenMeta.cpp
@@ -3119,8 +3119,12 @@ 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
+ } else {
3125
+ ptr = IGM.getAddrOfSILFunction(entry->getImplementation(),
3126
+ NotForDefinition);
3127
+ }
3128
} else {
3129
// The method is removed by dead method elimination.
3130
// It should be never called. We add a pointer to an error function.
0 commit comments