]> granicus.if.org Git - clang/commitdiff
Thread Safety Analysis: remove minor piece of unused code. No change in
authorDeLesley Hutchins <delesley@google.com>
Wed, 4 Feb 2015 19:28:17 +0000 (19:28 +0000)
committerDeLesley Hutchins <delesley@google.com>
Wed, 4 Feb 2015 19:28:17 +0000 (19:28 +0000)
functionality.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228176 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ThreadSafety.cpp

index ab791d813c0a995a89828cf0cedcbfe2ecb59b33..b5d87d2e651001007d37c0927b6736914a069fca 100644 (file)
@@ -1797,10 +1797,6 @@ void BuildLockset::handleCall(Expr *Exp, const NamedDecl *D, VarDecl *VD) {
     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),