Fixed some LLVM assertions.