diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2021-03-14 14:24:47 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2021-04-21 00:53:48 +0000 |
| commit | faa4fa1a6e94fce4f6fa22524a2bece5125213b6 (patch) | |
| tree | ecd5c4b860564b5b1926725f6ffafcebfac3b3d9 /src/runtime/asm_ppc64x.s | |
| parent | 1c268431f49ee2fc843eac52a0854aea3d02a6e0 (diff) | |
| download | go-faa4fa1a6e94fce4f6fa22524a2bece5125213b6.tar.xz | |
cmd/compile: allow conversion from slice to array ptr
Panic if the slice is too short.
Updates #395
Change-Id: I90f4bff2da5d8f3148ba06d2482084f32b25c29a
Reviewed-on: https://go-review.googlesource.com/c/go/+/301650
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/runtime/asm_ppc64x.s')
| -rw-r--r-- | src/runtime/asm_ppc64x.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/asm_ppc64x.s b/src/runtime/asm_ppc64x.s index 6544048497..2c39b38912 100644 --- a/src/runtime/asm_ppc64x.s +++ b/src/runtime/asm_ppc64x.s @@ -1022,3 +1022,7 @@ TEXT runtime·panicSlice3CU(SB),NOSPLIT,$0-16 MOVD R3, x+0(FP) MOVD R4, y+8(FP) JMP runtime·goPanicSlice3CU(SB) +TEXT runtime·panicSliceConvert(SB),NOSPLIT,$0-16 + MOVD R5, x+0(FP) + MOVD R6, y+8(FP) + JMP runtime·goPanicSliceConvert(SB) |
