createVolatileStore is the implementation of the intrinsic function runtime/volatile.StoreT().
()
| 20 | // createVolatileStore is the implementation of the intrinsic function |
| 21 | // runtime/volatile.StoreT(). |
| 22 | func (b *builder) createVolatileStore() { |
| 23 | b.createFunctionStart(true) |
| 24 | addr := b.getValue(b.fn.Params[0], getPos(b.fn)) |
| 25 | val := b.getValue(b.fn.Params[1], getPos(b.fn)) |
| 26 | b.createNilCheck(b.fn.Params[0], addr, "deref") |
| 27 | store := b.CreateStore(val, addr) |
| 28 | store.SetVolatile(true) |
| 29 | b.CreateRetVoid() |
| 30 | } |
no test coverage detected