Skip to content

Commit 564b756

Browse files
committed
[ADT/Support] Add includes to fix module build
Current Clang complains that 'size_t' / 'reference_wrapper' "must be declared before it is used."
1 parent 3acfef5 commit 564b756

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

llvm/include/llvm/ADT/bit.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define LLVM_ADT_BIT_H
1616

1717
#include "llvm/Support/Compiler.h"
18+
#include <cstddef> // for std::size_t
1819
#include <cstdint>
1920
#include <limits>
2021
#include <type_traits>

llvm/include/llvm/Support/ErrorOr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define LLVM_SUPPORT_ERROROR_H
1717

1818
#include <cassert>
19+
#include <functional> // for std::reference_wrapper
1920
#include <system_error>
2021
#include <type_traits>
2122
#include <utility>

0 commit comments

Comments
 (0)