[llvm] r229317 - [ADCE] Fix formatting of pointer types

Hal Finkel hfinkel at anl.gov
Sun Feb 15 07:47:52 PST 2015


Author: hfinkel
Date: Sun Feb 15 09:47:52 2015
New Revision: 229317

URL: http://llvm.org/viewvc/llvm-project?rev=229317&view=rev
Log:
[ADCE] Fix formatting of pointer types

We prefer to put the * with the variable, not with the type; NFC.

Modified:
    llvm/trunk/lib/Transforms/Scalar/ADCE.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/ADCE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ADCE.cpp?rev=229317&r1=229316&r2=229317&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ADCE.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ADCE.cpp Sun Feb 15 09:47:52 2015
@@ -69,10 +69,10 @@ bool ADCE::runOnFunction(Function& F) {
 
   // Propagate liveness backwards to operands.
   while (!Worklist.empty()) {
-    Instruction* Curr = 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 (Instruction* Inst = dyn_cast<Instruction>(OI))
+      if (Instruction *Inst = dyn_cast<Instruction>(OI))
         if (Alive.insert(Inst).second)
           Worklist.push_back(Inst);
   }





More information about the llvm-commits mailing list