r199499 - [analyzer] Fix incorrect spelling of 'pthread_rwlock_trywrlock'. Patch by Jean Baptiste Noblot.

Ted Kremenek kremenek at apple.com
Fri Jan 17 08:06:43 PST 2014


Author: kremenek
Date: Fri Jan 17 10:06:43 2014
New Revision: 199499

URL: http://llvm.org/viewvc/llvm-project?rev=199499&view=rev
Log:
[analyzer] Fix incorrect spelling of 'pthread_rwlock_trywrlock'.  Patch by Jean Baptiste Noblot.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp?rev=199499&r1=199498&r2=199499&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp Fri Jan 17 10:06:43 2014
@@ -69,7 +69,7 @@ void PthreadLockChecker::checkPostStmt(c
                 false, XNUSemantics);
   else if (FName == "pthread_mutex_trylock" ||
            FName == "pthread_rwlock_tryrdlock" ||
-           FName == "pthread_rwlock_tryrwlock")
+           FName == "pthread_rwlock_trywrlock")
     AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx),
                 true, PthreadSemantics);
   else if (FName == "lck_mtx_try_lock" ||
@@ -170,10 +170,10 @@ void PthreadLockChecker::ReleaseLock(Che
     if (!N)
       return;
     BugReport *report = new BugReport(*BT_lor,
-                                                      "This was not the most "
-                                                      "recently acquired lock. "
-                                                      "Possible lock order "
-                                                      "reversal", N);
+                                               "This was not the most "
+                                               "recently acquired lock. "
+                                               "Possible lock order "
+                                               "reversal", N);
     report->addRange(CE->getArg(0)->getSourceRange());
     C.emitReport(report);
     return;





More information about the cfe-commits mailing list