The patch in https://reviews.llvm.org/D53883 (by me) fails to build on 32-bit systems like ARM. Fix the array size to be less ridiculously large. 2<<20 should still be enough for all practical purposes.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Seems fine, with or without the length change. Hopefully this can get into 8.0.
bindings/go/llvm/ir.go | ||
---|---|---|
1265 | Looks like the Go documentation link above recommends using 1 << 28. Seems like a really awkward pattern, but I'm not a Go expert... |
Can you (or someone else) merge this change? I do not have commit access. That would allow a request for inclusion in LLVM 8 (I hope).
bindings/go/llvm/ir.go | ||
---|---|---|
1265 | That's a modification done by me, because the original code with 1 << 30 led to this bug. The exact number doesn't really matter, as long as it is "big enough". Yeah this is rather dirty Go, but it's as elegant as things get in CGo land. There may be better ways, and if someone knows one they should probably change this. For now, this fixes a rather important bug (FTBFS). |
Looks like the Go documentation link above recommends using 1 << 28. Seems like a really awkward pattern, but I'm not a Go expert...