diff options
Diffstat (limited to 'src/jit/emit.h')
-rw-r--r-- | src/jit/emit.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/jit/emit.h b/src/jit/emit.h index a9dc076958..8c2b825fe7 100644 --- a/src/jit/emit.h +++ b/src/jit/emit.h @@ -2382,11 +2382,12 @@ inline emitAttr emitTypeSize(T type) extern const unsigned short emitTypeActSz[TYP_COUNT]; -inline emitAttr emitActualTypeSize(var_types type) +template <class T> +inline emitAttr emitActualTypeSize(T type) { - assert(type < TYP_COUNT); - assert(emitTypeActSz[type] > 0); - return (emitAttr)emitTypeActSz[type]; + assert(TypeGet(type) < TYP_COUNT); + assert(emitTypeActSz[TypeGet(type)] > 0); + return (emitAttr)emitTypeActSz[TypeGet(type)]; } /***************************************************************************** |