aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/FileCheck/FileCheckTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/FileCheck/FileCheckTest.cpp')
-rw-r--r--llvm/unittests/FileCheck/FileCheckTest.cpp6
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,