diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-31 22:08:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-31 22:08:00 +0000 |
commit | 3717cdaf22ac0d0825f836a9ee029760741f68b4 (patch) | |
tree | ef7e8736c74f53bbd2dc3d956ad19469fd541fa9 /llvm/lib | |
parent | 01fa5d2a1efa70c14c3cebed1cd37a598be7eaa3 (diff) | |
download | bcm5719-llvm-3717cdaf22ac0d0825f836a9ee029760741f68b4.tar.gz bcm5719-llvm-3717cdaf22ac0d0825f836a9ee029760741f68b4.zip |
Set blockBegin to point to the beginning of the block,
not the end.
llvm-svn: 48999
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 40cfc1cc099..e881f799a67 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -99,11 +99,11 @@ Instruction* MemoryDependenceAnalysis::getCallSiteDependency(CallSite C, // If the starting point was specifiy, use it if (start) { QI = start; - blockBegin = start->getParent()->end(); + blockBegin = start->getParent()->begin(); // If the starting point wasn't specified, but the block was, use it } else if (!start && block) { QI = block->end(); - blockBegin = block->end(); + blockBegin = block->begin(); } // Walk backwards through the block, looking for dependencies |