[ADCE] Fix formatting of pointer types
authorHal Finkel <hfinkel@anl.gov>
Sun, 15 Feb 2015 15:47:52 +0000 (15:47 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 15 Feb 2015 15:47:52 +0000 (15:47 +0000)
We prefer to put the * with the variable, not with the type; NFC.

llvm-svn: 229317

llvm/lib/Transforms/Scalar/ADCE.cpp

index 4a00321..06a4dd9 100644 (file)
@@ -69,10 +69,10 @@ bool ADCE::runOnFunction(Function& F) {
 
   // Propagate liveness backwards to operands.
   while (!Worklist.empty()) {
-    InstructionCurr = Worklist.pop_back_val();
+    Instruction *Curr = Worklist.pop_back_val();
     for (Instruction::op_iterator OI = Curr->op_begin(), OE = Curr->op_end();
          OI != OE; ++OI)
-      if (InstructionInst = dyn_cast<Instruction>(OI))
+      if (Instruction *Inst = dyn_cast<Instruction>(OI))
         if (Alive.insert(Inst).second)
           Worklist.push_back(Inst);
   }