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

Method runRefAsNonNullOp

lib/executor/engine/refInstr.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104Expect<void>
105Executor::runRefAsNonNullOp(RefVariant &Ref,
106 const AST::Instruction &Instr) const noexcept {
107 if (Ref.isNull()) {
108 return Unexpect(logError(ErrCode::Value::CastNullToNonNull, Instr));
109 }
110 Ref.getType().toNonNullableRef();
111 return {};
112}
113
114Expect<void> Executor::runStructNewOp(Runtime::StackManager &StackMgr,
115 const uint32_t TypeIdx,

Callers

nothing calls this directly

Calls 4

UnexpectFunction · 0.85
logErrorFunction · 0.85
isNullMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected