Unconditionally reset 'cache' to zero, even if we don't need to resort it.
authorChris Lattner <sabre@nondot.org>
Fri, 23 Jan 2009 06:48:41 +0000 (06:48 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 23 Jan 2009 06:48:41 +0000 (06:48 +0000)
commit4433a09b9fbe0de4483d3d49c0462e2b9a839851
tree8033eac906a4508faa1db8b9516520d8a83bb697
parentc16d37ead0f07cc250d06e5cdbb3836f2f6082cd
Unconditionally reset 'cache' to zero, even if we don't need to resort it.
This avoids using a dangling pointer.

Reset NumSortedEntries after restoring Cache to avoid extraneous sorts.
This fixes the reduced sqlite3 testcase, but apparently not the whole app.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62838 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp