ARM64: Fix getmetatable() for cleared __metatable field.

Thanks to denesik. #1531
This commit is contained in:
Mike Pall 2026-10-13 12:07:10 +02:00
parent 2c9f5cf62c
commit ce8ec8dc23

View File

@ -1103,7 +1103,7 @@ static void build_subroutines(BuildCtx *ctx)
| movk CARG1, #(LJ_TTAB>>1)&0xffff, lsl #48
| b ->fff_restv
|5:
| cmp_nil TMP0
| cmp_nil CARG1
| bne ->fff_restv
| b <4
|