@@ -1439,7 +1439,7 @@ TEST_F(FileCheckTest, Substitution) {
14391439 // Substitution of an undefined string variable fails and error holds that
14401440 // variable's name.
14411441 StringSubstitution StringSubstitution (&Context, " VAR404" , 42 );
1442- Expected<std::string> SubstValue = StringSubstitution.getResult ();
1442+ Expected<std::string> SubstValue = StringSubstitution.getResultRegex ();
14431443 expectUndefErrors ({" VAR404" }, SubstValue.takeError ());
14441444
14451445 // Numeric substitution blocks constituted of defined numeric variables are
@@ -1452,20 +1452,20 @@ TEST_F(FileCheckTest, Substitution) {
14521452 std::move (NVarUse), ExpressionFormat (ExpressionFormat::Kind::HexUpper));
14531453 NumericSubstitution SubstitutionN (&Context, " N" , std::move (ExpressionN),
14541454 /* InsertIdx=*/ 30 );
1455- SubstValue = SubstitutionN.getResult ();
1455+ SubstValue = SubstitutionN.getResultRegex ();
14561456 ASSERT_THAT_EXPECTED (SubstValue, Succeeded ());
14571457 EXPECT_EQ (" A" , *SubstValue);
14581458
14591459 // Substitution of an undefined numeric variable fails, error holds name of
14601460 // undefined variable.
14611461 NVar.clearValue ();
1462- SubstValue = SubstitutionN.getResult ();
1462+ SubstValue = SubstitutionN.getResultRegex ();
14631463 expectUndefErrors ({" N" }, SubstValue.takeError ());
14641464
14651465 // Substitution of a defined string variable returns the right value.
14661466 Pattern P (Check::CheckPlain, &Context, 1 );
14671467 StringSubstitution = llvm::StringSubstitution (&Context, " FOO" , 42 );
1468- SubstValue = StringSubstitution.getResult ();
1468+ SubstValue = StringSubstitution.getResultRegex ();
14691469 ASSERT_THAT_EXPECTED (SubstValue, Succeeded ());
14701470 EXPECT_EQ (" BAR" , *SubstValue);
14711471}
0 commit comments