diff options
author | Douglas Yung <douglas.yung@sony.com> | 2022-12-14 10:05:01 -0800 |
---|---|---|
committer | Douglas Yung <douglas.yung@sony.com> | 2022-12-14 10:05:01 -0800 |
commit | 547e40a91b1e8e92add955a95a286999107c9196 (patch) | |
tree | e2fe8ce0f0c10bf698e2c29a43561ca1d8292c16 /llvm/unittests/FileCheck/FileCheckTest.cpp | |
parent | e898479f2b3d95ccda9e143865eedd615c667e22 (diff) | |
download | llvm-547e40a91b1e8e92add955a95a286999107c9196.zip llvm-547e40a91b1e8e92add955a95a286999107c9196.tar.gz llvm-547e40a91b1e8e92add955a95a286999107c9196.tar.bz2 |
Revert "[FileCheck] llvm::Optional => std::optional"
This reverts commit 13fd37c931c26ec07613dcad67b5ab2a593cd416.
This change is causing bot failures on some Windows and older GCC bots:
- https://lab.llvm.org/buildbot/#/builders/123/builds/14678
- https://lab.llvm.org/buildbot/#/builders/216/builds/14436
- https://lab.llvm.org/staging/#/builders/235/builds/993
Diffstat (limited to 'llvm/unittests/FileCheck/FileCheckTest.cpp')
-rw-r--r-- | llvm/unittests/FileCheck/FileCheckTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/FileCheck/FileCheckTest.cpp b/llvm/unittests/FileCheck/FileCheckTest.cpp index 8f75128..c31c553 100644 --- a/llvm/unittests/FileCheck/FileCheckTest.cpp +++ b/llvm/unittests/FileCheck/FileCheckTest.cpp @@ -750,7 +750,7 @@ TEST_F(FileCheckTest, NumericVariable) { // Defined variable without string: only getValue and eval return value set. FooVar.setValue(ExpressionValue(42u)); - std::optional<ExpressionValue> Value = FooVar.getValue(); + Optional<ExpressionValue> Value = FooVar.getValue(); ASSERT_TRUE(Value); EXPECT_EQ(42, cantFail(Value->getSignedValue())); EXPECT_FALSE(FooVar.getStringValue()); @@ -1014,7 +1014,7 @@ public: Expected<std::unique_ptr<Expression>> parseSubst(StringRef Expr, bool IsLegacyLineExpr = false) { StringRef ExprBufferRef = bufferize(SM, Expr); - std::optional<NumericVariable *> DefinedNumericVariable; + Optional<NumericVariable *> DefinedNumericVariable; return P.parseNumericSubstitutionBlock( ExprBufferRef, DefinedNumericVariable, IsLegacyLineExpr, LineNumber, &Context, SM); @@ -1665,7 +1665,7 @@ TEST_F(FileCheckTest, FileCheckContext) { StringRef UnknownVarStr = "UnknownVar"; Expected<StringRef> LocalVar = Cxt.getPatternVarValue(LocalVarStr); P = Pattern(Check::CheckPlain, &Cxt, ++LineNumber); - std::optional<NumericVariable *> DefinedNumericVariable; + Optional<NumericVariable *> DefinedNumericVariable; Expected<std::unique_ptr<Expression>> ExpressionPointer = P.parseNumericSubstitutionBlock(LocalNumVar1Ref, DefinedNumericVariable, /*IsLegacyLineExpr=*/false, LineNumber, |