Skip to content

Commit d0f2e06

Browse files
committed
revert back to the inout diagnosis
1 parent 10feb16 commit d0f2e06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -820,9 +820,9 @@ namespace {
820820
if (isAsyncCall(outerCall)) {
821821
// This call is a partial application within an async call.
822822
// If the partial application take a value inout, it is bad.
823-
// if (InOutExpr *inoutArg = dyn_cast<InOutExpr>(
824-
// call->getArg()->getSemanticsProvidingExpr()))
825-
// diagnoseInOutArg(outerCall, inoutArg, true);
823+
if (InOutExpr *inoutArg = dyn_cast<InOutExpr>(
824+
call->getArg()->getSemanticsProvidingExpr()))
825+
diagnoseInOutArg(outerCall, inoutArg, true);
826826
}
827827
}
828828

0 commit comments

Comments
 (0)