mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Program: Explicitly return variants values
- Otherwise the code fails to build with on GCC 7.4.0 on Ubuntu in the CI pipeline
This commit is contained in:
parent
8ca0d90aae
commit
c7051e1386
@ -133,7 +133,7 @@ variant<unique_ptr<Block>, ErrorList> Program::parseSource(Dialect const& _diale
|
|||||||
return errors;
|
return errors;
|
||||||
|
|
||||||
assert(errorReporter.errors().empty());
|
assert(errorReporter.errors().empty());
|
||||||
return ast;
|
return variant<unique_ptr<Block>, ErrorList>(move(ast));
|
||||||
}
|
}
|
||||||
|
|
||||||
variant<unique_ptr<AsmAnalysisInfo>, ErrorList> Program::analyzeAST(Dialect const& _dialect, Block const& _ast)
|
variant<unique_ptr<AsmAnalysisInfo>, ErrorList> Program::analyzeAST(Dialect const& _dialect, Block const& _ast)
|
||||||
@ -148,7 +148,7 @@ variant<unique_ptr<AsmAnalysisInfo>, ErrorList> Program::analyzeAST(Dialect cons
|
|||||||
return errors;
|
return errors;
|
||||||
|
|
||||||
assert(errorReporter.errors().empty());
|
assert(errorReporter.errors().empty());
|
||||||
return analysisInfo;
|
return variant<unique_ptr<AsmAnalysisInfo>, ErrorList>(move(analysisInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
unique_ptr<Block> Program::disambiguateAST(
|
unique_ptr<Block> Program::disambiguateAST(
|
||||||
|
Loading…
Reference in New Issue
Block a user