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 a5675a8 commit 4093d5eCopy full SHA for 4093d5e
lib/SIL/InstructionUtils.cpp
@@ -352,7 +352,10 @@ bool swift::isSanitizerInstrumentation(SILInstruction *Instruction) {
352
}
353
354
SILValue swift::isPartialApplyOfReabstractionThunk(PartialApplyInst *PAI) {
355
- if (PAI->getNumArguments() != 1)
+ // A partial_apply of a reabstraction thunk either has a single capture
356
+ // (a function) or two captures (function and dynamic Self type).
357
+ if (PAI->getNumArguments() != 1 &&
358
+ PAI->getNumArguments() != 2)
359
return SILValue();
360
361
auto *Fun = PAI->getReferencedFunction();
0 commit comments