]> granicus.if.org Git - clang/commitdiff
Ampersand goes with identifier.
authorChad Rosier <mcrosier@apple.com>
Fri, 7 Sep 2012 19:49:55 +0000 (19:49 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 7 Sep 2012 19:49:55 +0000 (19:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163410 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ThreadSafety.cpp

index 06ae32c3f1cbfa2f7bc93073fcb574533932f576..9c5fb1a1454f739e2e896a50019a4791d64b038f 100644 (file)
@@ -822,7 +822,7 @@ public:
 
   LockData* findLock(FactManager& FM, const SExpr& M) const {
     for (const_iterator I = begin(), E = end(); I != E; ++I) {
-      const SExprExp = FM[*I].MutID;
+      const SExpr &Exp = FM[*I].MutID;
       if (Exp.matches(M))
         return &FM[*I].LDat;
     }
@@ -831,7 +831,7 @@ public:
 
   LockData* findLockUniv(FactManager& FM, const SExpr& M) const {
     for (const_iterator I = begin(), E = end(); I != E; ++I) {
-      const SExprExp = FM[*I].MutID;
+      const SExpr &Exp = FM[*I].MutID;
       if (Exp.matches(M) || Exp.isUniversal())
         return &FM[*I].LDat;
     }