diff options
author | Paul Robinson <paul.robinson@sony.com> | 2022-12-16 09:40:51 -0800 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2022-12-16 09:41:20 -0800 |
commit | 08c8280d5d8af7fb995aec8fc00b8cfbca4e9505 (patch) | |
tree | 89f16186742ea41d08cb6b612ec1a53fdc21d61b /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 588ecc11b8959b716cc5337a03064046eddb3a29 (diff) | |
download | llvm-08c8280d5d8af7fb995aec8fc00b8cfbca4e9505.zip llvm-08c8280d5d8af7fb995aec8fc00b8cfbca4e9505.tar.gz llvm-08c8280d5d8af7fb995aec8fc00b8cfbca4e9505.tar.bz2 |
Undo one llvm::Optional => std::optional
Using std::optional in Support/TypeTraitsTest.cpp causes gcc 7.5 to
complain. No public bots run a gcc that old, but we have internal bots
that do.
/home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp: In instantiation of ‘void {anonymous}::triviality::TrivialityTester() [with T = std::optional<int>; bool IsTriviallyCopyConstructible = true; bool IsTriviallyMoveConstructible = true]’:
/home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp:121:52: required from here
/home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp:29:3: error: static assertion failed: Mismatch in expected trivial copy construction!
static_assert(llvm::is_trivially_copy_constructible<T>::value ==
^~~~~~~~~~~~~
/home/probinson/projects/llvm-org/llvm-project/llvm/unittests/Support/TypeTraitsTest.cpp:32:3: error: static assertion failed: Mismatch in expected trivial move construction!
static_assert(llvm::is_trivially_move_constructible<T>::value ==
^~~~~~~~~~~~~
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions