[llvm] 7f6c878 - Fix missing header and namespace qualifier in ADT Sequence

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 8 07:12:06 PDT 2021


Author: Guillaume Chatelet
Date: 2021-06-08T14:11:54Z
New Revision: 7f6c878a2c035eb6325ab228d9bc2d257509d959

URL: https://github.com/llvm/llvm-project/commit/7f6c878a2c035eb6325ab228d9bc2d257509d959
DIFF: https://github.com/llvm/llvm-project/commit/7f6c878a2c035eb6325ab228d9bc2d257509d959.diff

LOG: Fix missing header and namespace qualifier in ADT Sequence

Added: 
    

Modified: 
    llvm/include/llvm/ADT/Sequence.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/Sequence.h b/llvm/include/llvm/ADT/Sequence.h
index e75527fbaefd..eb109b64c417 100644
--- a/llvm/include/llvm/ADT/Sequence.h
+++ b/llvm/include/llvm/ADT/Sequence.h
@@ -15,7 +15,8 @@
 #ifndef LLVM_ADT_SEQUENCE_H
 #define LLVM_ADT_SEQUENCE_H
 
-#include <iterator>
+#include <cstddef>  // std::ptr
diff _t
+#include <iterator> // std::random_access_iterator_tag
 
 namespace llvm {
 
@@ -24,7 +25,7 @@ namespace detail {
 template <typename T, bool IsReversed> struct iota_range_iterator {
   using iterator_category = std::random_access_iterator_tag;
   using value_type = T;
-  using 
diff erence_type = ptr
diff _t;
+  using 
diff erence_type = std::ptr
diff _t;
   using pointer = T *;
   using reference = T &;
 


        


More information about the llvm-commits mailing list