diff --git a/lib/Interpreter/NullDerefProtectionTransformer.cpp b/lib/Interpreter/NullDerefProtectionTransformer.cpp index b6d03278..c8088004 100644 --- a/lib/Interpreter/NullDerefProtectionTransformer.cpp +++ b/lib/Interpreter/NullDerefProtectionTransformer.cpp @@ -75,7 +75,6 @@ namespace cling { llvm::BasicBlock* NullDerefProtectionTransformer::getTrapBB() { - if (FailBB) return FailBB; llvm::Function *Fn = Inst->getParent()->getParent(); llvm::LLVMContext& ctx = Fn->getContext(); @@ -86,10 +85,7 @@ namespace cling { } void NullDerefProtectionTransformer::instrumentLoadInst(llvm::LoadInst *LI) { - LI->dump(); llvm::Value * Addr = LI->getOperand(0); - Addr->dump(); - LI->getParent()->getParent()->dump(); llvm::PointerType* PTy = llvm::cast(Addr->getType()); llvm::Type * ElTy = PTy -> getElementType(); if (!ElTy->isPointerTy()) { @@ -142,10 +138,8 @@ namespace cling { Builder->SetInsertPoint(Inst); if (llvm::LoadInst *LI = llvm::dyn_cast(Inst)) { instrumentLoadInst(LI); - LI->dump(); } else if (llvm::StoreInst *SI = llvm::dyn_cast(Inst)) { instrumentStoreInst(SI); - SI->dump(); } else { llvm_unreachable("unknown Instruction type"); }