[PATCH] Fix missing std::

Matt Arsenault Matthew.Arsenault at amd.com
Wed Mar 20 17:08:30 PDT 2013


Not sure how this compiles for anyone else

http://llvm-reviews.chandlerc.com/D560

Files:
  lib/CodeGen/MachineScheduler.cpp
  lib/DebugInfo/DWARFDebugAranges.cpp

Index: lib/CodeGen/MachineScheduler.cpp
===================================================================
--- lib/CodeGen/MachineScheduler.cpp
+++ lib/CodeGen/MachineScheduler.cpp
@@ -2182,7 +2182,7 @@
   /// Callback to select the highest priority node from the ready Q.
   virtual SUnit *pickNode(bool &IsTopNode) {
     if (ReadyQ.empty()) return NULL;
-    pop_heap(ReadyQ.begin(), ReadyQ.end(), Cmp);
+    std::pop_heap(ReadyQ.begin(), ReadyQ.end(), Cmp);
     SUnit *SU = ReadyQ.back();
     ReadyQ.pop_back();
     IsTopNode = false;
Index: lib/DebugInfo/DWARFDebugAranges.cpp
===================================================================
--- lib/DebugInfo/DWARFDebugAranges.cpp
+++ lib/DebugInfo/DWARFDebugAranges.cpp
@@ -186,7 +186,7 @@
     Range range(address);
     RangeCollIterator begin = Aranges.begin();
     RangeCollIterator end = Aranges.end();
-    RangeCollIterator pos = lower_bound(begin, end, range, RangeLessThan);
+    RangeCollIterator pos = std::lower_bound(begin, end, range, RangeLessThan);
 
     if (pos != end && pos->LoPC <= address && address < pos->HiPC()) {
       return pos->Offset;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D560.1.patch
Type: text/x-patch
Size: 1131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130320/7835ec24/attachment.bin>


More information about the llvm-commits mailing list