diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-15 04:58:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-15 04:58:29 +0000 |
commit | 3af23f8aba9ac28fe5a8646f57c2c307a35c1e4d (patch) | |
tree | 717c23cffb6dec19d5ffff15d8778aaa8c481415 /lib/Analysis | |
parent | 4807e07fff3ae765b4718f73c0d9b8912ec604d4 (diff) | |
download | external_llvm-3af23f8aba9ac28fe5a8646f57c2c307a35c1e4d.zip external_llvm-3af23f8aba9ac28fe5a8646f57c2c307a35c1e4d.tar.gz external_llvm-3af23f8aba9ac28fe5a8646f57c2c307a35c1e4d.tar.bz2 |
if we have a phi translation failure of the start block,
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
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 1dfa1fa..a5bfeee 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -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()))); } |