diff options
author | Cameron Zwarich <zwarich@apple.com> | 2013-02-20 06:46:44 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-20 06:46:44 +0000 |
commit | 60af0f25616d8f228f1c5aa6ad79426fcc46baaa (patch) | |
tree | 9d28fdaf303e106c1b51bc55bf1d5240937d431f | |
parent | 349cf349987a65be89078913e34126898bcdd138 (diff) | |
download | llvm-60af0f25616d8f228f1c5aa6ad79426fcc46baaa.tar.gz llvm-60af0f25616d8f228f1c5aa6ad79426fcc46baaa.tar.bz2 llvm-60af0f25616d8f228f1c5aa6ad79426fcc46baaa.tar.xz |
Modify LiveInterval::addRange() to match the comment about what it returns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175602 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 95760758de..69428853cd 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -373,8 +373,8 @@ namespace llvm { /// addRange - Add the specified LiveRange to this interval, merging /// intervals as appropriate. This returns an iterator to the inserted live /// range (which may have grown since it was inserted. - void addRange(LiveRange LR) { - addRangeFrom(LR, ranges.begin()); + iterator addRange(LiveRange LR) { + return addRangeFrom(LR, ranges.begin()); } /// extendInBlock - If this interval is live before Kill in the basic block |