Skip to content

Commit 0c1ff19

Browse files
committed
Add an include to xtr1common in ADL.h
When including ADL.h in a header that is used from Swift using C++ interop, MSVC complains about a missing definition of `remove_reference_t` in ADL.h. Explicitly including `<xtr1common>` fixes the issue.
1 parent e2a279f commit 0c1ff19

File tree

1 file changed

+3
-0
lines changed
  • llvm/include/llvm/ADT

1 file changed

+3
-0
lines changed

llvm/include/llvm/ADT/ADL.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#ifndef LLVM_ADT_ADL_H
1010
#define LLVM_ADT_ADL_H
1111

12+
#if defined(_MSC_VER) && _MSC_VER < 1937
13+
#include <xtr1common>
14+
#endif
1215
#include <type_traits>
1316
#include <iterator>
1417
#include <utility>

0 commit comments

Comments
 (0)