checkNewEscape

Detect cases where pointers to the stack can escape the lifetime of the stack frame by being placed into a GC allocated object. Print error messages when these are detected.

bool
checkNewEscape

Parameters

sc
Type: Scope*

used to determine current function and module

e

expression to check for any pointers to the stack

gag
Type: bool

do not print error messages

Return Value

Type: bool

true if pointers to the stack can escape

Meta