make if/else codegen produce llvmir properly