diff options
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
-rw-r--r-- | llvm/unittests/Support/ErrorTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/Support/ErrorTest.cpp b/llvm/unittests/Support/ErrorTest.cpp index 16118a9..11f9320 100644 --- a/llvm/unittests/Support/ErrorTest.cpp +++ b/llvm/unittests/Support/ErrorTest.cpp @@ -1070,7 +1070,7 @@ static Error createAnyError() { } struct MoveOnlyBox { - Optional<int> Box; + std::optional<int> Box; explicit MoveOnlyBox(int I) : Box(I) {} MoveOnlyBox() = default; @@ -1117,7 +1117,7 @@ TEST(Error, moveInto) { // Check that this works with optionals too. { // Same cases as above. - Optional<MoveOnlyBox> MaybeV; + std::optional<MoveOnlyBox> MaybeV; EXPECT_THAT_ERROR(makeFailure().moveInto(MaybeV), Failed()); EXPECT_EQ(std::nullopt, MaybeV); |