- Notifications
You must be signed in to change notification settings - Fork14.5k
Commit3ff796f
committed
[clang][bytecode] Fix const-in-mutable fields
For mutable and const fields, we have two bits in InlineDescriptor,which both get inherited down the hierarchy. When a field is both constand mutable, we CAN read from it if it is a mutable-in-const field, butwe _can't_ read from it if it is a const-in-mutable field. We needanother bit to distinguish the two cases.1 parentfe19419 commit3ff796f
File tree
5 files changed
+61
-10
lines changed- clang
- lib/AST/ByteCode
- test/AST/ByteCode
5 files changed
+61
-10
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
163 |
| - | |
| 163 | + | |
164 | 164 |
| |
| 165 | + | |
| 166 | + | |
165 | 167 |
| |
166 | 168 |
| |
167 | 169 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 |
| |
105 | 109 |
| |
106 | 110 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
566 | 566 |
| |
567 | 567 |
| |
568 | 568 |
| |
569 |
| - | |
| 569 | + | |
570 | 570 |
| |
571 | 571 |
| |
572 | 572 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
576 | 576 |
| |
577 | 577 |
| |
578 | 578 |
| |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
579 | 584 |
| |
580 | 585 |
| |
581 | 586 |
| |
|
Lines changed: 48 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
9 | 5 |
| |
10 | 6 |
| |
11 | 7 |
| |
| |||
26 | 22 |
| |
27 | 23 |
| |
28 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + |
0 commit comments
Comments
(0)