diff options
author | Eric Christopher <echristo@apple.com> | 2010-05-21 23:40:03 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-05-21 23:40:03 +0000 |
commit | 53ff992dde7d169ab1334264d2c542478d6b3706 (patch) | |
tree | 229f00fb1be98d80dfebc7104da7323f286eaf2d /llvm/lib/CodeGen/MachineCSE.cpp | |
parent | 5981b04718ca013d04ac06a9245ab2edc5bcf2a3 (diff) | |
download | bcm5719-llvm-53ff992dde7d169ab1334264d2c542478d6b3706.tar.gz bcm5719-llvm-53ff992dde7d169ab1334264d2c542478d6b3706.zip |
Make this LookAheadLimit, not the uninitialized LookAheadLeft.
Evan please verify!
llvm-svn: 104408
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCSE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp index acd31176c33..6f4f7a88340 100644 --- a/llvm/lib/CodeGen/MachineCSE.cpp +++ b/llvm/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()) |