Add Expr::ErasedLoad

This commit is contained in:
Ayaz Hafiz 2023-07-02 11:48:21 -05:00
parent 2c838aa5c2
commit 283b9d53d6
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
11 changed files with 92 additions and 17 deletions

View file

@ -1112,6 +1112,7 @@ fn expr_contains_symbol(expr: &Expr, needle: Symbol) -> bool {
Expr::ErasedMake { value, callee } => {
value.map(|v| v == needle).unwrap_or(false) || needle == *callee
}
Expr::ErasedLoad { symbol, field: _ } => needle == *symbol,
}
}