aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/ObjectYAML/MachO
diff options
context:
space:
mode:
authorYevgeny Rouban <yrouban@azul.com>2020-08-21 10:45:11 +0700
committerYevgeny Rouban <yrouban@azul.com>2020-08-21 11:01:57 +0700
commit7d9a16241fdd800a394e5cb4ecdf76f6bb8c9d9f (patch)
treedd918a069cd08b5c4bb58fabc4d21632cde27673 /llvm/test/ObjectYAML/MachO
parentf7ff0ace96db9164dcde232c36cab6519ea4fce8 (diff)
downloadllvm-7d9a16241fdd800a394e5cb4ecdf76f6bb8c9d9f.zip
llvm-7d9a16241fdd800a394e5cb4ecdf76f6bb8c9d9f.tar.gz
llvm-7d9a16241fdd800a394e5cb4ecdf76f6bb8c9d9f.tar.bz2
[ADT] Allow IsSizeLessThanThresholdT for incomplete types. NFC
If the type T is incomplete then sizeof(T) results in C++ compilation error at line: static constexpr bool value = sizeof(T) <= (2 * sizeof(void *)); This patch allows incomplete types in parameters of function. Example: using SomeFunc = void(SomeIncompleteType &); llvm::unique_function<SomeFuncType> SomeFunc; Reviewers: DaniilSuchkov, vvereschaka Differential Revision: https://reviews.llvm.org/D81554
Diffstat (limited to 'llvm/test/ObjectYAML/MachO')
0 files changed, 0 insertions, 0 deletions