mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12787 from ethereum/stackTooDeepMemorySafeSuggestion
Change memory-safe assembly annotation suggestion during stack too deep errors.
This commit is contained in:
commit
db30f4d495
@ -89,7 +89,7 @@ void EVMObjectCompiler::run(Object& _object, bool _optimize)
|
|||||||
if (memoryGuardCalls.empty())
|
if (memoryGuardCalls.empty())
|
||||||
msg += "\nNo memoryguard was present. "
|
msg += "\nNo memoryguard was present. "
|
||||||
"Consider using memory-safe assembly only and annotating it via "
|
"Consider using memory-safe assembly only and annotating it via "
|
||||||
"\"/// @solidity memory-safe-assembly\".";
|
"'assembly (\"memory-safe\") { ... }'.";
|
||||||
else
|
else
|
||||||
msg += "\nmemoryguard was present.";
|
msg += "\nmemoryguard was present.";
|
||||||
stackError << util::errinfo_comment(msg);
|
stackError << util::errinfo_comment(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user