- Notifications
You must be signed in to change notification settings - Fork5
Commit060b22a
committed
Fix subtly-wrong volatility checking in BeginCopyFrom().
contain_volatile_functions() is best applied to the output ofexpression_planner(), not its input, so that insertion of functiondefault arguments and constant-folding have been done. (See commentsat CheckMutability, for instance.) It's perhaps unlikely that anyonewill notice a difference in practice, but still we should do it properly.In passing, change variable type from Node* to Expr* to reduce the netnumber of casts needed.Noted while perusing uses of contain_volatile_functions().1 parent20803d7 commit060b22a
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2506 | 2506 |
| |
2507 | 2507 |
| |
2508 | 2508 |
| |
2509 |
| - | |
| 2509 | + | |
| 2510 | + | |
2510 | 2511 |
| |
2511 | 2512 |
| |
2512 | 2513 |
| |
2513 |
| - | |
2514 |
| - | |
2515 |
| - | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
2516 | 2519 |
| |
2517 | 2520 |
| |
2518 | 2521 |
| |
| 2522 | + | |
2519 | 2523 |
| |
2520 |
| - | |
| 2524 | + | |
2521 | 2525 |
| |
2522 | 2526 |
| |
2523 | 2527 |
| |
|
0 commit comments
Comments
(0)