mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Inline assembly without memory effects is implicitly memory safe.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user