Fix null pointer derefence in LLVM 3.5