[llvm] r175602 - Modify LiveInterval::addRange() to match the comment about what it returns.

Cameron Zwarich zwarich at apple.com
Tue Feb 19 22:46:44 PST 2013


Author: zwarich
Date: Wed Feb 20 00:46:44 2013
New Revision: 175602

URL: http://llvm.org/viewvc/llvm-project?rev=175602&view=rev
Log:
Modify LiveInterval::addRange() to match the comment about what it returns.

Modified:
    llvm/trunk/include/llvm/CodeGen/LiveInterval.h

Modified: llvm/trunk/include/llvm/CodeGen/LiveInterval.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveInterval.h?rev=175602&r1=175601&r2=175602&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveInterval.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveInterval.h Wed Feb 20 00:46:44 2013
@@ -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





More information about the llvm-commits mailing list