[llvm] r224570 - Remove redundant assignment.

Tilmann Scheller t.scheller at samsung.com
Fri Dec 19 03:29:35 PST 2014


Author: tilmann
Date: Fri Dec 19 05:29:34 2014
New Revision: 224570

URL: http://llvm.org/viewvc/llvm-project?rev=224570&view=rev
Log:
Remove redundant assignment.

Found with the Clang static analyzer.

Modified:
    llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp?rev=224570&r1=224569&r2=224570&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Fri Dec 19 05:29:34 2014
@@ -1145,7 +1145,6 @@ getNonLocalPointerDepFromBB(const PHITra
       // cache value will only see properly sorted cache arrays.
       if (Cache && NumSortedEntries != Cache->size()) {
         SortNonLocalDepInfoCache(*Cache, NumSortedEntries);
-        NumSortedEntries = Cache->size();
       }
       // Since we bail out, the "Cache" set won't contain all of the
       // results for the query.  This is ok (we can still use it to accelerate





More information about the llvm-commits mailing list