summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-05-21 23:40:03 +0000
committerEric Christopher <echristo@apple.com>2010-05-21 23:40:03 +0000
commite81d0105894a7d0cdd9ffb788a10715ed073ac67 (patch)
tree9c69f47a1349c9dccd6c1bba8a247d27ea85ca9c /lib/CodeGen/MachineCSE.cpp
parentc2685a9c989d8a4c433f317034b552cefae25422 (diff)
downloadllvm-e81d0105894a7d0cdd9ffb788a10715ed073ac67.tar.gz
llvm-e81d0105894a7d0cdd9ffb788a10715ed073ac67.tar.bz2
llvm-e81d0105894a7d0cdd9ffb788a10715ed073ac67.tar.xz
Make this LookAheadLimit, not the uninitialized LookAheadLeft.
Evan please verify! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineCSE.cpp')
-rw-r--r--lib/CodeGen/MachineCSE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineCSE.cpp b/lib/CodeGen/MachineCSE.cpp
index acd31176c3..6f4f7a8834 100644
--- a/lib/CodeGen/MachineCSE.cpp
+++ b/lib/CodeGen/MachineCSE.cpp
@@ -137,7 +137,7 @@ bool
MachineCSE::isPhysDefTriviallyDead(unsigned Reg,
MachineBasicBlock::const_iterator I,
MachineBasicBlock::const_iterator E) const {
- unsigned LookAheadLeft = LookAheadLeft;
+ unsigned LookAheadLeft = LookAheadLimit;
while (LookAheadLeft) {
// Skip over dbg_value's.
while (I != E && I->isDebugValue())