From d0aad7b826825ea5e80a987cda4ab2d18ff78ebe Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sun, 7 Jul 2024 14:15:56 -0700 Subject: [PATCH] more flexibility in initializing table loop iterators --- src/script_opt/ZAM/IterInfo.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/script_opt/ZAM/IterInfo.h b/src/script_opt/ZAM/IterInfo.h index 8b466f0763..05782571a4 100644 --- a/src/script_opt/ZAM/IterInfo.h +++ b/src/script_opt/ZAM/IterInfo.h @@ -24,6 +24,12 @@ public: // dynamic ones being done with SetLoopVars(). TableIterInfo(const std::vector* _loop_var_types, const std::vector* _lvt_is_managed, TypePtr _value_var_type) { + SetIterInfo(_loop_var_types, _lvt_is_managed, std::move(_value_var_type)); + } + + // Sets the fixed fields. + void SetIterInfo(const std::vector* _loop_var_types, const std::vector* _lvt_is_managed, + TypePtr _value_var_type) { loop_var_types = _loop_var_types; lvt_is_managed = _lvt_is_managed; value_var_type = std::move(_value_var_type);