MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / convTypeCodeToAddrType

Function convTypeCodeToAddrType

lib/validator/formchecker.cpp:40–49  ·  view source on GitHub ↗

Helper function for packing TypeCode to address type.

Source from the content-addressed store, hash-verified

38
39// Helper function for packing TypeCode to address type.
40AddressType convTypeCodeToAddrType(const TypeCode TC) noexcept {
41 switch (TC) {
42 case TypeCode::I32:
43 return AddressType::I32;
44 case TypeCode::I64:
45 return AddressType::I64;
46 default:
47 assumingUnreachable();
48 }
49};
50
51} // namespace
52

Callers 1

checkInstrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected