diff options
Diffstat (limited to 'include/llvm/ADT/ilist_base.h')
-rw-r--r-- | include/llvm/ADT/ilist_base.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/ADT/ilist_base.h b/include/llvm/ADT/ilist_base.h index 1ffc864bea2f3..3d818a48d41d4 100644 --- a/include/llvm/ADT/ilist_base.h +++ b/include/llvm/ADT/ilist_base.h @@ -1,4 +1,4 @@ -//===- llvm/ADT/ilist_base.h - Intrusive List Base ---------------*- C++ -*-==// +//===- llvm/ADT/ilist_base.h - Intrusive List Base --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -12,15 +12,13 @@ #include "llvm/ADT/ilist_node_base.h" #include <cassert> -#include <cstddef> -#include <type_traits> namespace llvm { /// Implementations of list algorithms using ilist_node_base. template <bool EnableSentinelTracking> class ilist_base { public: - typedef ilist_node_base<EnableSentinelTracking> node_base_type; + using node_base_type = ilist_node_base<EnableSentinelTracking>; static void insertBeforeImpl(node_base_type &Next, node_base_type &N) { node_base_type &Prev = *Next.getPrev(); |