Check whether the first byte is the reftype in table type.
| 10 | Expect<void> Loader::loadSegment(AST::TableSegment &TabSeg) { |
| 11 | // Check whether the first byte is the reftype in table type. |
| 12 | EXPECTED_TRY(uint8_t CheckByte, FMgr.peekByte().map_error([this](auto E) { |
| 13 | return logLoadError(E, FMgr.getLastOffset(), ASTNodeAttr::Seg_Table); |
| 14 | })); |
| 15 | |
| 16 | if (CheckByte == 0x40U) { |
| 17 | // Table segment case is for FunctionReferences proposal. |
no test coverage detected