aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SimpleRegisterCoalescing.h
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2009-10-30 18:12:09 +0000
committerLang Hames <lhames@gmail.com>2009-10-30 18:12:09 +0000
commit788fa17af87dba8836fca691c9028c57ef8fc4fe (patch)
tree1bce9ac0c3d068a5a29a3200090b06f8a278c0d0 /lib/CodeGen/SimpleRegisterCoalescing.h
parentc1382b745faa62bc6f2570a193bce6aee8d78885 (diff)
Stop the iterator in ValueLiveAt from potentially running off the end of the interval.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SimpleRegisterCoalescing.h')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.h b/lib/CodeGen/SimpleRegisterCoalescing.h
index a381ae78af..7f282a43dd 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.h
+++ b/lib/CodeGen/SimpleRegisterCoalescing.h
@@ -204,7 +204,8 @@ namespace llvm {
/// ValueLiveAt - Return true if the LiveRange pointed to by the given
/// iterator, or any subsequent range with the same value number,
/// is live at the given point.
- bool ValueLiveAt(LiveInterval::iterator LRItr, LiveIndex defPoint) const;
+ bool ValueLiveAt(LiveInterval::iterator LRItr, LiveInterval::iterator LREnd,
+ LiveIndex defPoint) const;
/// RangeIsDefinedByCopyFromReg - Return true if the specified live range of
/// the specified live interval is defined by a copy from the specified