Mercurial > octave
changeset 32865:cc7dec89dee2 bytecode-interpreter
adapt bytecode interpreter to recent symbol_scope changes
* ov-ref.h (octave_value_ref_persistent::m_scope):
Set default value to symbol_scope::invalid.
* pt-pt-bytecode-walk.h (bytecode_walker::m_scope): Likewise.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 26 Jan 2024 16:49:50 -0500 |
parents | 2e26c017d9c9 |
children | 5c3eb4976795 |
files | libinterp/octave-value/ov-ref.h libinterp/parse-tree/pt-bytecode-walk.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-ref.h Fri Jan 26 16:25:50 2024 -0500 +++ b/libinterp/octave-value/ov-ref.h Fri Jan 26 16:49:50 2024 -0500 @@ -127,7 +127,7 @@ private: int m_offset; - octave::symbol_scope m_scope; + octave::symbol_scope m_scope = octave::symbol_scope::invalid (); DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA };
--- a/libinterp/parse-tree/pt-bytecode-walk.h Fri Jan 26 16:25:50 2024 -0500 +++ b/libinterp/parse-tree/pt-bytecode-walk.h Fri Jan 26 16:49:50 2024 -0500 @@ -154,7 +154,7 @@ bytecode m_code; // The bytecode need its own scope object that will // be written back to the octave_user_function object - symbol_scope m_scope; + symbol_scope m_scope = symbol_scope::invalid (); bool m_varargout = false; bool m_is_script = false;