File tree Expand file tree Collapse file tree 3 files changed +4
-41
lines changed Expand file tree Collapse file tree 3 files changed +4
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 17
17
#ifndef SWIFT_BASIC_FLAGGEDPOINTER_H
18
18
#define SWIFT_BASIC_FLAGGEDPOINTER_H
19
19
20
+ #include < algorithm>
20
21
#include < cassert>
21
22
22
23
#include " llvm/Support/Compiler.h"
23
24
#include " llvm/Support/PointerLikeTypeTraits.h"
24
25
25
- #include " Algorithm.h"
26
-
27
26
namespace swift {
28
27
29
28
// / This class implements a pair of a pointer and boolean flag.
@@ -170,7 +169,7 @@ struct llvm::PointerLikeTypeTraits<
170
169
enum {
171
170
NumLowBitsAvailable = (BitPosition >= PtrTraits::NumLowBitsAvailable)
172
171
? PtrTraits::NumLowBitsAvailable
173
- : (swift ::min (int (BitPosition + 1 ),
172
+ : (std ::min (int (BitPosition + 1 ),
174
173
int (PtrTraits::NumLowBitsAvailable)) - 1 )
175
174
};
176
175
};
Original file line number Diff line number Diff line change 34
34
#ifndef SWIFT_BASIC_PREFIXMAP_H
35
35
#define SWIFT_BASIC_PREFIXMAP_H
36
36
37
- #include " swift/Basic/Algorithm.h"
38
37
#include " swift/Basic/Debug.h"
39
38
#include " swift/Basic/LLVM.h"
40
39
#include " swift/Basic/type_traits.h"
@@ -53,8 +52,8 @@ template <class KeyElementType> class PrefixMapKeyPrinter;
53
52
// / A map whose keys are sequences of comparable values, optimized for
54
53
// / finding a mapped value for the longest matching initial subsequence.
55
54
template <class KeyElementType , class ValueType ,
56
- size_t InlineKeyCapacity
57
- = max< size_t >(( sizeof (void *) - 1) / sizeof(KeyElementType), 1 )>
55
+ size_t InlineKeyCapacity = std::max(
56
+ ( sizeof (void *) - 1) / sizeof(KeyElementType), size_t( 1 ) )>
58
57
class PrefixMap {
59
58
public:
60
59
using KeyType = ArrayRef<KeyElementType>;
You can’t perform that action at this time.
0 commit comments