From 28f26618970e46c3beb8607ac648a5ea39c5e98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 5 Jun 2024 15:25:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20VariableNode::writeBytecodeOutpu?= =?UTF-8?q?t()=20cannot=20handle=20mod-file=20local=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit f8a73341073386a669b553da602a260209a46772) --- src/ExprNode.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ExprNode.cc b/src/ExprNode.cc index 63d05308..6df4c3ba 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -1442,8 +1442,7 @@ VariableNode::writeBytecodeOutput(Bytecode::Writer& code_file, temporary_terms_idxs)) return; - auto type = get_type(); - if (type == SymbolType::modelLocalVariable || type == SymbolType::modFileLocalVariable) + if (auto type = get_type(); type == SymbolType::modelLocalVariable) datatree.getLocalVariable(symb_id)->writeBytecodeOutput(code_file, output_type, temporary_terms, temporary_terms_idxs, tef_terms); else -- GitLab