Commit 060b22a
committed
Fix subtly-wrong volatility checking in BeginCopyFrom().
contain_volatile_functions() is best applied to the output of
expression_planner(), not its input, so that insertion of function
default arguments and constant-folding have been done. (See comments
at CheckMutability, for instance.) It's perhaps unlikely that anyone
will notice a difference in practice, but still we should do it properly.
In passing, change variable type from Node* to Expr* to reduce the net
number of casts needed.
Noted while perusing uses of contain_volatile_functions().1 parent 20803d7 commit 060b22a
1 file changed
+9
-5
lines changed| 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