diff options
author | Mike Pall <mike> | 2020-06-13 00:52:54 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-06-15 02:52:00 +0200 |
commit | 8ae5170cdc9c307bd81019b3e014391c9fd00581 (patch) | |
tree | ccf9f17035d0754c1758faee209e9a26b4e03418 /src/lj_target.h | |
parent | 8b55054473452963f24b01efb7c4cc72497c74ec (diff) | |
download | luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.tar.gz luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.tar.bz2 luajit-8ae5170cdc9c307bd81019b3e014391c9fd00581.zip |
Improve assertions.
Diffstat (limited to 'src/lj_target.h')
-rw-r--r-- | src/lj_target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_target.h b/src/lj_target.h index 47c960bc..ce67d000 100644 --- a/src/lj_target.h +++ b/src/lj_target.h | |||
@@ -152,7 +152,8 @@ typedef uint32_t RegCost; | |||
152 | /* Return the address of an exit stub. */ | 152 | /* Return the address of an exit stub. */ |
153 | static LJ_AINLINE char *exitstub_addr_(char **group, uint32_t exitno) | 153 | static LJ_AINLINE char *exitstub_addr_(char **group, uint32_t exitno) |
154 | { | 154 | { |
155 | lua_assert(group[exitno / EXITSTUBS_PER_GROUP] != NULL); | 155 | lj_assertX(group[exitno / EXITSTUBS_PER_GROUP] != NULL, |
156 | "exit stub group for exit %d uninitialized", exitno); | ||
156 | return (char *)group[exitno / EXITSTUBS_PER_GROUP] + | 157 | return (char *)group[exitno / EXITSTUBS_PER_GROUP] + |
157 | EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP); | 158 | EXITSTUB_SPACING*(exitno % EXITSTUBS_PER_GROUP); |
158 | } | 159 | } |