diff libinterp/corefcn/pt-jit.cc @ 19685:885d38747cd5

Fix failing JIT tests (bug #41312). * pt-jit.cc (jit_convert::get_variable): Search for function name if vname is not a variable. * test/jit.tst: Make two tests with complex inputs %!xtest because support for complex function prototypes does not exist.
author Stefan Mahr <dac922@gmx.de>
date Mon, 27 Jan 2014 15:52:57 +0100
parents db92e7e28e1f
children 4197fc428c7d
line wrap: on
line diff
--- a/libinterp/corefcn/pt-jit.cc	Mon Feb 02 15:13:22 2015 +0100
+++ b/libinterp/corefcn/pt-jit.cc	Mon Jan 27 15:52:57 2014 +0100
@@ -1132,6 +1132,9 @@
   else
     {
       octave_value val = record.varval ();
+      if (val.is_undefined ())
+        val = symbol_table::find_function (vname);
+
       jit_type *type = jit_typeinfo::type_of (val);
       bounds.push_back (type_bound (type, vname));