changeset 33369:2717d1cceee2 bytecode-interpreter

Avoid unnecessary use of octave_value_factory (bug #65573). * ov-base-mat.cc (octave_base_matrix<MT>::vm_extract_forloop_value): Call constructor of octave_value class directly instead of using octave_value_factory.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 09 Apr 2024 19:47:35 +0200
parents fc12e1f3cd5d
children 463c1f9bfadc
files libinterp/octave-value/ov-base-mat.cc
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-mat.cc	Tue Apr 09 10:02:08 2024 -0400
+++ b/libinterp/octave-value/ov-base-mat.cc	Tue Apr 09 19:47:35 2024 +0200
@@ -39,9 +39,6 @@
 #include "ov-base.h"
 #include "ov-base-mat.h"
 #include "ov-base-scalar.h"
-#if defined (OCTAVE_ENABLE_BYTECODE_EVALUATOR)
-#include "ov-inline.h"
-#endif
 #include "pr-output.h"
 
 template <typename MT>
@@ -626,7 +623,7 @@
 {
   // TODO: Maybe this is slow? Should preferably be done once per loop
   octave_value_list idx;
-  octave_value arg = octave_value_factory::make_copy (this);
+  octave_value arg = octave_value (this, true);
 
   dim_vector dv = arg.dims ().redim (2);
   octave_idx_type nrows = dv(0);