fix broken llvm ir for while and block