LLVM gen: make proper use of integer types