Commit e6f921a
committed
Fix oslc assertion when passing stucts with operator overloading. (762)
The recent patch that allows users to specify operator overloading
for structs means that, in this particular spot, the AST node type
that might be passed as the argument to a function might be a binary
or unary expression -- those could never have returned a struct before,
so were not enumerated in the list of nodes of this conditional, causing
an assertion to hit.1 parent eb7b872 commit e6f921a
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1732 | 1732 | | |
1733 | 1733 | | |
1734 | 1734 | | |
1735 | | - | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
1736 | 1738 | | |
1737 | 1739 | | |
1738 | 1740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
49 | 62 | | |
0 commit comments