| 102 | } |
| 103 | |
| 104 | Expect<void> |
| 105 | Executor::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 | |
| 114 | Expect<void> Executor::runStructNewOp(Runtime::StackManager &StackMgr, |
| 115 | const uint32_t TypeIdx, |