diff options
author | DeLesley Hutchins <delesley@google.com> | 2012-07-02 21:59:24 +0000 |
---|---|---|
committer | DeLesley Hutchins <delesley@google.com> | 2012-07-02 21:59:24 +0000 |
commit | c4a6e515969a3f62100673cf4d400eaee0d9df82 (patch) | |
tree | 7cd514ac0a5f0c62dbd069308a3986432309ac85 /clang/lib/Analysis/ThreadSafety.cpp | |
parent | f0190752711546267a9e4ffd47b285c0ba0d1bc5 (diff) | |
download | bcm5719-llvm-c4a6e515969a3f62100673cf4d400eaee0d9df82.tar.gz bcm5719-llvm-c4a6e515969a3f62100673cf4d400eaee0d9df82.zip |
Thread Safety Analysis: turn off checking within trylock functions.
llvm-svn: 159601
Diffstat (limited to 'clang/lib/Analysis/ThreadSafety.cpp')
-rw-r--r-- | clang/lib/Analysis/ThreadSafety.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp index fd4551b975d..7406f324ae5 100644 --- a/clang/lib/Analysis/ThreadSafety.cpp +++ b/clang/lib/Analysis/ThreadSafety.cpp @@ -1654,6 +1654,12 @@ void ThreadSafetyAnalyzer::runAnalysis(AnalysisDeclContext &AC) { } else if (isa<SharedLockFunctionAttr>(Attr)) { // Don't try to check lock functions for now return; + } else if (isa<ExclusiveTrylockFunctionAttr>(Attr)) { + // Don't try to check trylock functions for now + return; + } else if (isa<SharedTrylockFunctionAttr>(Attr)) { + // Don't try to check trylock functions for now + return; } } } |