Skip to content

Commit 87701de

Browse files
authored
Merge pull request #1708 from compnerd/DR1734
Support: add workaround for newer MSVC toolchains
2 parents d5efdad + 762d17e commit 87701de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/include/llvm/Support/type_traits.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ template <typename T>
186186
class is_trivially_copyable<T*> : public std::true_type {
187187
};
188188

189+
// Workaround the resolution to DR1734
190+
#if _MSVC_STL_UPDATE-0l > 202002l
191+
template <>
192+
class is_trivially_copyable<std::pair<void *, size_t>> : public std::true_type {
193+
};
194+
#endif
195+
189196

190197
} // end namespace llvm
191198

0 commit comments

Comments
 (0)