Skip to content

Commit f7dd583

Browse files
committed
SIL: Remove workaround for rdar://problem/36799163
1 parent 268acbc commit f7dd583

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/SIL/SILVerifier.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,14 +2342,6 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
23422342
case SILInstructionKind::ApplyInst:
23432343
case SILInstructionKind::TryApplyInst:
23442344
case SILInstructionKind::PartialApplyInst:
2345-
// Non-Mutating set pattern that allows a inout (that can't really
2346-
// write back. Only SILGen generates PointerToThinkFunction
2347-
// instructions in the writeback code.
2348-
if (auto *AI = dyn_cast<ApplyInst>(inst)) {
2349-
if (isa<PointerToThinFunctionInst>(AI->getCallee())) {
2350-
break;
2351-
}
2352-
}
23532345
if (isConsumingOrMutatingApplyUse(use))
23542346
return true;
23552347
else

0 commit comments

Comments
 (0)