| 121 | } |
| 122 | |
| 123 | void Record_Merge |
| 124 | ( |
| 125 | Record a, |
| 126 | const Record b |
| 127 | ) { |
| 128 | ASSERT(a->owner == b->owner); |
| 129 | uint len = Record_length(a); |
| 130 | |
| 131 | for(uint i = 0; i < len; i++) { |
| 132 | RecordEntryType a_type = a->entries[i].type; |
| 133 | RecordEntryType b_type = b->entries[i].type; |
| 134 | |
| 135 | if(a_type == REC_TYPE_UNKNOWN && b_type != REC_TYPE_UNKNOWN) { |
| 136 | _RecordPropagateEntry(a, b, i, true); |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // merge entries from `from` into `to`, transfer ownership if transfer_ownership |
| 142 | // is on |
no test coverage detected