Add -no-escape-analysis, which cannot be used with -vet-nil-deref or -vet-uninitialized

This commit is contained in:
gingerBill committed 2026-10-07 20:56:04 +01:00
1 parent 476ff62d6d
commit 6784db9f86
4 files changed
+26 -4

No files matched your search

+1 -1
View File
@@ -9562,7 +9562,7 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
c->decl->defer_used += 1;
}
}
if (c->curr_proc_decl != nullptr) {
if (c->curr_proc_decl != nullptr && !build_context.no_escape_analysis) {
per_thread_array_add(&c->info->checked_calls_queue, CheckedCall{c->curr_proc_decl, callee});
}
}