| 24 | } |
| 25 | |
| 26 | static void valueCompileFunc(FunctionBindData* /*bindData*/, |
| 27 | const std::vector<std::shared_ptr<ValueVector>>& parameters, |
| 28 | std::shared_ptr<ValueVector>& result) { |
| 29 | DASSERT(parameters.size() == 1); |
| 30 | result->setState(parameters[0]->state); |
| 31 | UnionVector::getTagVector(result.get())->setState(parameters[0]->state); |
| 32 | UnionVector::referenceVector(result.get(), UnionType::TAG_FIELD_IDX, parameters[0]); |
| 33 | } |
| 34 | |
| 35 | function_set UnionValueFunction::getFunctionSet() { |
| 36 | function_set functionSet; |