(
self, ptr: Value, struct: RStruct, field: str, value: Value, line: int
)
| 345 | return self.load_mem(address, struct.field_type(field), borrow=borrow) |
| 346 | |
| 347 | def set_struct_field( |
| 348 | self, ptr: Value, struct: RStruct, field: str, value: Value, line: int |
| 349 | ) -> None: |
| 350 | address = self.add(GetElementPtr(ptr, struct, field)) |
| 351 | field_type = struct.field_type(field) |
| 352 | value = self.coerce(value, field_type, line) |
| 353 | self.set_mem(address, field_type, value) |
| 354 | self.keep_alive([ptr], line) |
| 355 | |
| 356 | def push_error_handler(self, handler: BasicBlock | None) -> None: |
| 357 | self.error_handlers.append(handler) |
nothing calls this directly
no test coverage detected