llvm: Fix crash when slicing static arrays