LLVM IR: Why is this implementation of fizz buzz causing a segfault?
I have written a compiler that uses Inkwell to produce LLVM IR. When compiling a simple fizz_buzz program I have created the following llir. The llir when compiled and ran causes a segfault. Why is this? Thanks.