Add "memory-safe" to indicate that it fits the memory model
0xSmartContract opened this issue · 0 comments
0xSmartContract commented
You can specifically annotate an assembly block to indicate that it in fact respects Solidity’s memory model as follows:
assembly ("memory-safe") {
...
}
Or you can use a special comment to annotate an assembly block as memory-safe:
/// @solidity memory-safe-assembly
assembly {
...
}