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 3173a3d commit 3bc6497Copy full SHA for 3bc6497
lib/SILOptimizer/Mandatory/TransferNonSendable.cpp
@@ -647,7 +647,8 @@ class PartitionOpTranslator {
647
648
if (auto tryApplyInst = dyn_cast<TryApplyInst>(inst)) {
649
foundResults.emplace_back(tryApplyInst->getNormalBB()->getArgument(0));
650
- foundResults.emplace_back(tryApplyInst->getErrorBB()->getArgument(0));
+ if (tryApplyInst->getErrorBB()->getNumArguments() > 0)
651
+ foundResults.emplace_back(tryApplyInst->getErrorBB()->getArgument(0));
652
return;
653
}
654
0 commit comments