| 705 | // >>>>>>>> Functions to access address value from ValVariant >>>>>>>>>>>>>>>>>> |
| 706 | |
| 707 | inline uint64_t extractAddr(const ValVariant &Val, |
| 708 | const AddressType AT) noexcept { |
| 709 | switch (AT) { |
| 710 | case AddressType::I32: |
| 711 | return static_cast<uint64_t>(Val.get<uint32_t>()); |
| 712 | case AddressType::I64: |
| 713 | return static_cast<uint64_t>(Val.get<uint64_t>()); |
| 714 | default: |
| 715 | assumingUnreachable(); |
| 716 | } |
| 717 | } |
| 718 | |
| 719 | inline ValVariant emplaceAddr(const uint64_t Addr, |
| 720 | const AddressType AT) noexcept { |
no outgoing calls
no test coverage detected