mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 19:19:53 -04:00
Add flow-based escape analysis of stack memory, reported as warnings
This commit is contained in:
1 parent
9a2321bf55
commit
8ea02cc733
4 files changed
+1839
-29
No files matched your search
@@ -13,6 +13,7 @@ gb_internal void check_expr_or_type(CheckerContext *c, Operand *operand, Ast *ex
|
||||
gb_internal void add_comparison_procedures_for_fields(CheckerContext *c, Type *t);
|
||||
gb_internal Type *check_type(CheckerContext *ctx, Ast *e);
|
||||
gb_internal void check_procedure_later(Checker *c, ProcInfo *info);
|
||||
gb_internal void check_proc_escapes(Type *type, Ast *body);
|
||||
|
||||
gb_internal bool is_operand_value(Operand o) {
|
||||
switch (o.mode) {
|
||||
@@ -4907,6 +4908,7 @@ gb_internal DECL_ATTRIBUTE_PROC(asm_decl_attribute) {
|
||||
#include "name_canonicalization.cpp"
|
||||
#include "check_decl.cpp"
|
||||
#include "check_stmt.cpp"
|
||||
#include "check_escape.cpp"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user