Mercurial > hg > octave-nkf
diff src/pt-jit.cc @ 14924:d4d9a64db6aa
Treat undefined as any
author | Max Brister <max@2bass.com> |
---|---|
date | Tue, 29 May 2012 09:50:40 -0500 |
parents | 168cb10bb9c5 |
children | 8697e3e9d77a |
line wrap: on
line diff
--- a/src/pt-jit.cc +++ b/src/pt-jit.cc @@ -587,7 +587,7 @@ jit_type * jit_typeinfo::do_type_of (const octave_value &ov) const { - if (ov.is_undefined () || ov.is_function ()) + if (ov.is_function ()) return 0; if (ov.is_double_type () && ov.is_real_scalar ()) @@ -819,7 +819,8 @@ if (jit_extract_argument *extract = dynamic_cast<jit_extract_argument *>(instr)) { if (! extract->type ()) - fail (); // we depend on an unknown type + // we depend on an unknown type + fail ("Unknown initial type: \"" + extract->tag () + "\""); append_users (extract); } }