Remove redundant assignment.
authorTilmann Scheller <t.scheller@samsung.com>
Fri, 19 Dec 2014 11:29:34 +0000 (11:29 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Fri, 19 Dec 2014 11:29:34 +0000 (11:29 +0000)
Found with the Clang static analyzer.

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

lib/Analysis/MemoryDependenceAnalysis.cpp

index ad7242136bbb7ca3ca596e4d36f7972617ba6218..881a25655406cbf2a431b2d88c6ec417e3525f7f 100644 (file)
@@ -1145,7 +1145,6 @@ getNonLocalPointerDepFromBB(const PHITransAddr &Pointer,
       // 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