Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
19684:50f14692e33b | 19685:885d38747cd5 |
---|---|
1130 if (converting_function) | 1130 if (converting_function) |
1131 return create_variable (vname, jit_typeinfo::get_any (), false); | 1131 return create_variable (vname, jit_typeinfo::get_any (), false); |
1132 else | 1132 else |
1133 { | 1133 { |
1134 octave_value val = record.varval (); | 1134 octave_value val = record.varval (); |
1135 if (val.is_undefined ()) | |
1136 val = symbol_table::find_function (vname); | |
1137 | |
1135 jit_type *type = jit_typeinfo::type_of (val); | 1138 jit_type *type = jit_typeinfo::type_of (val); |
1136 bounds.push_back (type_bound (type, vname)); | 1139 bounds.push_back (type_bound (type, vname)); |
1137 | 1140 |
1138 return create_variable (vname, type); | 1141 return create_variable (vname, type); |
1139 } | 1142 } |