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

llvm-svn: 199499
This commit is contained in:
Ted Kremenek 2014-01-17 16:06:43 +00:00
parent b825a634d6
commit 115c3f7a36
1 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ void PthreadLockChecker::checkPostStmt(const CallExpr *CE,
false, XNUSemantics); false, XNUSemantics);
else if (FName == "pthread_mutex_trylock" || else if (FName == "pthread_mutex_trylock" ||
FName == "pthread_rwlock_tryrdlock" || FName == "pthread_rwlock_tryrdlock" ||
FName == "pthread_rwlock_tryrwlock") FName == "pthread_rwlock_trywrlock")
AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx), AcquireLock(C, CE, state->getSVal(CE->getArg(0), LCtx),
true, PthreadSemantics); true, PthreadSemantics);
else if (FName == "lck_mtx_try_lock" || else if (FName == "lck_mtx_try_lock" ||
@ -170,10 +170,10 @@ void PthreadLockChecker::ReleaseLock(CheckerContext &C, const CallExpr *CE,
if (!N) if (!N)
return; return;
BugReport *report = new BugReport(*BT_lor, BugReport *report = new BugReport(*BT_lor,
"This was not the most " "This was not the most "
"recently acquired lock. " "recently acquired lock. "
"Possible lock order " "Possible lock order "
"reversal", N); "reversal", N);
report->addRange(CE->getArg(0)->getSourceRange()); report->addRange(CE->getArg(0)->getSourceRange());
C.emitReport(report); C.emitReport(report);
return; return;