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.
2 parents cbd53a0 + f2ec959 commit d293845Copy full SHA for d293845
lib/IRGen/GenOpaque.cpp
@@ -482,10 +482,9 @@ void IRGenFunction::emitDeallocateDynamicAlloca(StackAddress address) {
482
if (isCoroutine()) {
483
auto allocToken = address.getExtraInfo();
484
assert(allocToken && "dynamic alloca in coroutine without alloc token?");
485
- (void)allocToken;
486
auto freeFn = llvm::Intrinsic::getDeclaration(
487
&IGM.Module, llvm::Intrinsic::ID::coro_alloca_free);
488
- Builder.CreateCall(freeFn, address.getAddressPointer());
+ Builder.CreateCall(freeFn, allocToken);
489
return;
490
}
491
0 commit comments