From 0024f020dc953a735cd6ec2c2a42c4f09a84a491 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 16 Apr 2016 00:42:37 +0000 Subject: [PATCH] Add some missing #includes, found by C++ modules selfhost. llvm-svn: 266500 --- include/llvm/ADT/STLExtras.h | 4 +++- include/llvm/Support/type_traits.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h index 06a1756e26f..0d547c29572 100644 --- a/include/llvm/ADT/STLExtras.h +++ b/include/llvm/ADT/STLExtras.h @@ -17,7 +17,6 @@ #ifndef LLVM_ADT_STLEXTRAS_H #define LLVM_ADT_STLEXTRAS_H -#include "llvm/Support/Compiler.h" #include // for std::all_of #include #include // for std::size_t @@ -27,6 +26,9 @@ #include #include // for std::pair +#include "llvm/ADT/iterator_range.h" +#include "llvm/Support/Compiler.h" + namespace llvm { //===----------------------------------------------------------------------===// diff --git a/include/llvm/Support/type_traits.h b/include/llvm/Support/type_traits.h index 2a429585201..7706ff52719 100644 --- a/include/llvm/Support/type_traits.h +++ b/include/llvm/Support/type_traits.h @@ -17,6 +17,8 @@ #include #include +#include "llvm/Support/Compiler.h" + #ifndef __has_feature #define LLVM_DEFINED_HAS_FEATURE #define __has_feature(x) 0