mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
add alloca as an expression
This commit is contained in:
parent
750234f2de
commit
cdd2aab217
15 changed files with 171 additions and 14 deletions
|
@ -1109,6 +1109,7 @@ fn expr_contains_symbol(expr: &Expr, needle: Symbol) -> bool {
|
|||
value.map(|v| v == needle).unwrap_or(false) || needle == *callee
|
||||
}
|
||||
Expr::ErasedLoad { symbol, field: _ } => needle == *symbol,
|
||||
Expr::Alloca { initializer, .. } => &Some(needle) == initializer,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue