Removed even more std::cerr and #include <iostream> things.
[oota-llvm.git] / lib / Transforms / LevelRaise.cpp
index 943000c96613e0ec969e5dfb94b97bcf204d7be6..4c366bdd33ef59e16d0dcfa24f5413ad813a375c 100644 (file)
@@ -80,7 +80,7 @@ namespace {
     bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI);
   };
 
-  RegisterOpt<RPR> X("raise", "Raise Pointer References");
+  RegisterPass<RPR> X("raise", "Raise Pointer References");
 }
 
 
@@ -103,7 +103,6 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
 
   if (CastInst *CI = dyn_cast<CastInst>(I)) {
     Value       *Src    = CI->getOperand(0);
-    Instruction *SrcI   = dyn_cast<Instruction>(Src); // Nonnull if instr source
     const Type  *DestTy = CI->getType();
 
     // Peephole optimize the following instruction: