@@ -1364,18 +1364,19 @@ static bool usesNativeSwiftReferenceCounting_nonNull(
1364
1364
SWIFT_RUNTIME_EXPORT
1365
1365
void swift_objc_swift3ImplicitObjCEntrypoint(id self, SEL selector) {
1366
1366
// Figure out how much reporting we want by querying the environment
1367
- // variable SWIFT_DEBUG_IMPLICIT_OBJC_ENTRYPOINT. We have four
1367
+ // variable SWIFT_DEBUG_IMPLICIT_OBJC_ENTRYPOINT. We have four meaningful
1368
1368
// levels:
1369
1369
//
1370
1370
// 0: Don't report anything
1371
1371
// 1: Complain about uses of implicit @objc entrypoints.
1372
1372
// 2: Complain about uses of implicit @objc entrypoints, with backtraces
1373
1373
// if possible.
1374
- // 3: Complain about uses of implicit @objc entrypoints, with backtraces
1375
- // if possible, then abort().
1374
+ // 3: Complain about uses of implicit @objc entrypoints, then abort().
1376
1375
//
1377
1376
// The actual reportLevel is stored as the above values +1, so that
1378
1377
// 0 indicates we have not yet checked. It's fine to race through here.
1378
+ //
1379
+ // The default, if SWIFT_DEBUG_IMPLICIT_OBJC_ENTRYPOINT is not set, is 2.
1379
1380
static int storedReportLevel = 0 ;
1380
1381
if (storedReportLevel == 0 ) {
1381
1382
auto reportLevelStr = getenv (" SWIFT_DEBUG_IMPLICIT_OBJC_ENTRYPOINT" );
@@ -1384,7 +1385,7 @@ void swift_objc_swift3ImplicitObjCEntrypoint(id self, SEL selector) {
1384
1385
reportLevelStr[1 ] == 0 )
1385
1386
storedReportLevel = (reportLevelStr[0 ] - ' 0' ) + 1 ;
1386
1387
else
1387
- storedReportLevel = 1 ;
1388
+ storedReportLevel = 3 ;
1388
1389
}
1389
1390
1390
1391
int reportLevel = storedReportLevel - 1 ;
0 commit comments