[llvm] r203356 - Adding some includes to appease build bots. Amends r203354

Aaron Ballman aaron at aaronballman.com
Sat Mar 8 12:15:31 PST 2014


Author: aaronballman
Date: Sat Mar  8 14:15:31 2014
New Revision: 203356

URL: http://llvm.org/viewvc/llvm-project?rev=203356&view=rev
Log:
Adding some includes to appease build bots. Amends r203354

Modified:
    llvm/trunk/include/llvm/ADT/iterator_range.h

Modified: llvm/trunk/include/llvm/ADT/iterator_range.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/iterator_range.h?rev=203356&r1=203355&r2=203356&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/iterator_range.h (original)
+++ llvm/trunk/include/llvm/ADT/iterator_range.h Sat Mar  8 14:15:31 2014
@@ -19,6 +19,8 @@
 #ifndef LLVM_ADT_ITERATOR_RANGE_H
 #define LLVM_ADT_ITERATOR_RANGE_H
 
+#include <algorithm>
+#include <iterator>
 #include <utility>
 
 namespace llvm {
@@ -52,9 +54,9 @@ public:
 
 /// \brief Determine the distance between the end() and begin() iterators of
 /// a range. Analogous to std::distance().
-template <class Range>
-typename range_traits<Range>::difference_type distance(Range R) {
-  return std::distance(R.begin(), R.end());
+template <class Range>
+typename range_traits<Range>::difference_type distance(Range R) {
+  return std::distance(R.begin(), R.end());
 }
 
 /// \brief Copies members of a range into the output iterator provided.





More information about the llvm-commits mailing list