- lst::type::cuptr variant = lttng::make_unique<lst::variant_type>(
- 0, "id", std::move(variant_choices));
+ lst::type::cuptr variant = lttng::make_unique<lst::variant_type>(0,
+ lst::field_location(lst::field_location::root::EVENT_RECORD_HEADER,
+ {"id"}),
+ std::move(variant_choices));