@@ -1281,8 +1281,6 @@ static void noteIsolatedActorMember(
1281
1281
// the declaration.
1282
1282
if (isDistributedActor) {
1283
1283
if (auto var = dyn_cast<VarDecl>(decl)) {
1284
- fprintf (stderr, " [%s:%d] (%s) VAR:\n " , __FILE__, __LINE__, __FUNCTION__);
1285
- decl->dump ();
1286
1284
// Distributed actor properties are never accessible externally.
1287
1285
decl->diagnose (diag::distributed_actor_isolated_property,
1288
1286
decl->getDescriptiveKind (), decl->getName (),
@@ -2113,13 +2111,6 @@ namespace {
2113
2111
}
2114
2112
2115
2113
VarDecl *findReferencedCallBase (Expr *expr) {
2116
- fprintf (stderr, " [%s:%d] (%s) FIND BASE:\n " , __FILE__, __LINE__, __FUNCTION__);
2117
- expr->dump ();
2118
- fprintf (stderr, " [%s:%d] (%s) ============================================================\n " , __FILE__, __LINE__, __FUNCTION__);
2119
- fprintf (stderr, " [%s:%d] (%s) ============================================================\n " , __FILE__, __LINE__, __FUNCTION__);
2120
- fprintf (stderr, " [%s:%d] (%s) ============================================================\n " , __FILE__, __LINE__, __FUNCTION__);
2121
- fprintf (stderr, " [%s:%d] (%s) ============================================================\n " , __FILE__, __LINE__, __FUNCTION__);
2122
-
2123
2114
if (auto selfVar = getReferencedParamOrCapture (expr))
2124
2115
if (selfVar->isSelfParameter () || selfVar->isSelfParamCapture ())
2125
2116
return selfVar;
@@ -2297,26 +2288,11 @@ namespace {
2297
2288
// / context and false otherwise.
2298
2289
bool isDistributedAccess (SourceLoc declLoc, ValueDecl *decl,
2299
2290
Expr *context) {
2300
- fprintf (stderr, " [%s:%d] (%s) decl:\n " , __FILE__, __LINE__, __FUNCTION__);
2301
- decl->dump ();
2302
-
2303
2291
// If base of the call is 'local' we permit skip distributed checks.
2304
2292
if (auto base = findReferencedCallBase (context)) {
2305
- fprintf (stderr, " [%s:%d] (%s) base:\n " , __FILE__, __LINE__, __FUNCTION__);
2306
- base->dump ();
2307
-
2308
2293
if (base->isDistributedKnownToBeLocal ()) {
2309
- fprintf (stderr, " [%s:%d] (%s) was known local!\n " , __FILE__, __LINE__, __FUNCTION__);
2310
- base->dump ();
2311
-
2312
2294
return false ;
2313
- } else {
2314
- fprintf (stderr, " [%s:%d] (%s) was NOT known local!\n " , __FILE__, __LINE__, __FUNCTION__);
2315
- base->dump ();
2316
2295
}
2317
- } else {
2318
- fprintf (stderr, " [%s:%d] (%s) no base for: \n " , __FILE__, __LINE__, __FUNCTION__);
2319
- context->dump ();
2320
2296
}
2321
2297
2322
2298
// Cannot reference subscripts, or stored properties.
@@ -2331,8 +2307,6 @@ namespace {
2331
2307
return true ;
2332
2308
2333
2309
// otherwise, it was a normal property or subscript and therefore illegal
2334
- fprintf (stderr, " [%s:%d] (%s) property access...!\n " , __FILE__, __LINE__, __FUNCTION__);
2335
-
2336
2310
ctx.Diags .diagnose (
2337
2311
declLoc, diag::distributed_actor_isolated_non_self_reference,
2338
2312
decl->getDescriptiveKind (), decl->getName ());
0 commit comments