mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
[FunC] Deprecate pragma allow-post-modification
All tests pass: it does not affect hashes (since modifying variables in a single expression was an error)
This commit is contained in:
parent
bb86dc0f96
commit
aaf3ca335d
5 changed files with 12 additions and 27 deletions
|
@ -347,6 +347,7 @@ int func_proceed(const std::vector<std::string> &sources, std::ostream &outs, st
|
|||
|
||||
funC::define_keywords();
|
||||
funC::define_builtins();
|
||||
pragma_allow_post_modification.always_on_and_deprecated("0.5.0");
|
||||
|
||||
int ok = 0, proc = 0;
|
||||
try {
|
||||
|
@ -365,7 +366,6 @@ int func_proceed(const std::vector<std::string> &sources, std::ostream &outs, st
|
|||
if (!proc) {
|
||||
throw src::Fatal{"no source files, no output"};
|
||||
}
|
||||
pragma_allow_post_modification.check_enable_in_libs();
|
||||
pragma_compute_asm_ltr.check_enable_in_libs();
|
||||
pragma_remove_unused_functions.check_enable_in_libs();
|
||||
return funC::generate_output(outs, errs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue