summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-31 22:08:00 +0000
committerDan Gohman <gohman@apple.com>2008-03-31 22:08:00 +0000
commit3717cdaf22ac0d0825f836a9ee029760741f68b4 (patch)
treeef7e8736c74f53bbd2dc3d956ad19469fd541fa9 /llvm/lib
parent01fa5d2a1efa70c14c3cebed1cd37a598be7eaa3 (diff)
downloadbcm5719-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.cpp4
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
OpenPOWER on IntegriCloud