comparison libinterp/corefcn/jit-typeinfo.h @ 20649:d35201e5ce5d

Fix compilation of jit broken by dd6345fd8a97 (bug #46191). * jit-typeinfo.cc (octave_jit_compute_nelem): Use rng.numel() rather than deprecated nelem(). * jit-typeinfo.cc (octave_jit_ginvalid_index): Call gripe_invalid_index (-1) now that 0-argument form of function has been removed. * jit-typeinfo.h (jit_range): Use numel() rather than nelem() for Range. * pt-jit.cc (trip_count): Use numel() rather than nelem() for Range.
author Rik <rik@octave.org>
date Mon, 12 Oct 2015 16:08:12 -0700
parents 5dfaaaae784f
children b65888ec820e
comparison
equal deleted inserted replaced
20648:27c091f4b66d 20649:d35201e5ce5d
43 // jit_range is compatible with the llvm range structure 43 // jit_range is compatible with the llvm range structure
44 struct 44 struct
45 jit_range 45 jit_range
46 { 46 {
47 jit_range (const Range& from) : base (from.base ()), limit (from.limit ()), 47 jit_range (const Range& from) : base (from.base ()), limit (from.limit ()),
48 inc (from.inc ()), nelem (from.nelem ()) 48 inc (from.inc ()), nelem (from.numel ())
49 { } 49 { }
50 50
51 operator Range () const 51 operator Range () const
52 { 52 {
53 return Range (base, limit, inc); 53 return Range (base, limit, inc);