if we have a phi translation failure of the start block,
authorChris Lattner <sabre@nondot.org>
Mon, 15 Dec 2008 04:58:29 +0000 (04:58 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Dec 2008 04:58:29 +0000 (04:58 +0000)
return *just* a clobber of the start block, not other
random stuff as well.

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

lib/Analysis/MemoryDependenceAnalysis.cpp

index 1dfa1fac0843e410c7d2ac83c61c13fa086b4de3..a5bfeee7bc1fcdfe570ca095757f9e2929d57fa8 100644 (file)
@@ -494,6 +494,7 @@ getNonLocalPointerDependency(Value *Pointer, bool isLoad, BasicBlock *FromBB,
   if (!getNonLocalPointerDepFromBB(Pointer, PointeeSize, isLoad, FromBB,
                                    Result, Visited, true))
     return;
+  Result.clear();
   Result.push_back(std::make_pair(FromBB,
                                   MemDepResult::getClobber(FromBB->begin())));
 }