aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/ObjCAtSyncChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Checker/ObjCAtSyncChecker.cpp')
-rw-r--r--lib/Checker/ObjCAtSyncChecker.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Checker/ObjCAtSyncChecker.cpp b/lib/Checker/ObjCAtSyncChecker.cpp
index dc2e664e05..41580955a9 100644
--- a/lib/Checker/ObjCAtSyncChecker.cpp
+++ b/lib/Checker/ObjCAtSyncChecker.cpp
@@ -75,13 +75,15 @@ void ObjCAtSyncChecker::PreVisitObjCAtSynchronizedStmt(CheckerContext &C,
Ex);
C.EmitReport(report);
+ return;
}
}
- // From this point forward, we know that the mutex is null.
- C.addTransition(nullState);
+ // Don't add a transition for 'nullState'. If the value is
+ // under-constrained to be null or non-null, assume it is non-null
+ // afterwards.
}
if (notNullState)
C.addTransition(notNullState);
}
-
+