aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/go/llvm/ir.go
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/go/llvm/ir.go')
-rw-r--r--bindings/go/llvm/ir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/go/llvm/ir.go b/bindings/go/llvm/ir.go
index 1872a2ffe510..3e85137a751a 100644
--- a/bindings/go/llvm/ir.go
+++ b/bindings/go/llvm/ir.go
@@ -1263,7 +1263,7 @@ func (v Value) Indices() []uint32 {
num := C.LLVMGetNumIndices(v.C)
indicesPtr := C.LLVMGetIndices(v.C)
// https://github.com/golang/go/wiki/cgo#turning-c-arrays-into-go-slices
- rawIndices := (*[1 << 30]C.uint)(unsafe.Pointer(indicesPtr))[:num:num]
+ rawIndices := (*[1 << 20]C.uint)(unsafe.Pointer(indicesPtr))[:num:num]
indices := make([]uint32, num)
for i := range indices {
indices[i] = uint32(rawIndices[i])