Inline assembly without memory effects is implicitly memory safe.

This commit is contained in:
Daniel Kirchner
2022-03-02 16:42:28 +01:00
parent e6848caac1
commit 9bcfcc61a7
6 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ bool DocStringTagParser::visit(InlineAssembly const& _assembly)
if (valuesSeen.insert(value).second)
{
if (value == "memory-safe-assembly")
_assembly.annotation().memorySafe = true;
_assembly.annotation().markedMemorySafe = true;
else
m_errorReporter.warning(
8787_error,