Allow annotating inline assembly as memory-safe.

This commit is contained in:
Daniel Kirchner
2022-03-02 16:42:28 +01:00
parent e8520a667b
commit e6848caac1
9 changed files with 100 additions and 9 deletions
+2
View File
@@ -220,6 +220,8 @@ struct InlineAssemblyAnnotation: StatementAnnotation
std::map<yul::Identifier const*, ExternalIdentifierInfo> externalReferences;
/// Information generated during analysis phase.
std::shared_ptr<yul::AsmAnalysisInfo> analysisInfo;
/// True, if the assembly block was annotated to be memory-safe.
bool memorySafe = false;
};
struct BlockAnnotation: StatementAnnotation, ScopableAnnotation