r228176 - Thread Safety Analysis: remove minor piece of unused code. No change in
DeLesley Hutchins
delesley at google.com
Wed Feb 4 11:28:17 PST 2015
Author: delesley
Date: Wed Feb 4 13:28:17 2015
New Revision: 228176
URL: http://llvm.org/viewvc/llvm-project?rev=228176&view=rev
Log:
Thread Safety Analysis: remove minor piece of unused code. No change in
functionality.
Modified:
cfe/trunk/lib/Analysis/ThreadSafety.cpp
Modified: cfe/trunk/lib/Analysis/ThreadSafety.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/ThreadSafety.cpp?rev=228176&r1=228175&r2=228176&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/ThreadSafety.cpp (original)
+++ cfe/trunk/lib/Analysis/ThreadSafety.cpp Wed Feb 4 13:28:17 2015
@@ -1797,10 +1797,6 @@ void BuildLockset::handleCall(Expr *Exp,
DeclRefExpr DRE(VD, false, VD->getType(), VK_LValue, VD->getLocation());
// FIXME: does this store a pointer to DRE?
CapabilityExpr Scp = Analyzer->SxBuilder.translateAttrExpr(&DRE, nullptr);
-
- CapExprSet UnderlyingMutexes(ExclusiveLocksToAdd);
- std::copy(SharedLocksToAdd.begin(), SharedLocksToAdd.end(),
- std::back_inserter(UnderlyingMutexes));
Analyzer->addLock(FSet,
llvm::make_unique<ScopedLockableFactEntry>(
Scp, MLoc, ExclusiveLocksToAdd, SharedLocksToAdd),
More information about the cfe-commits
mailing list