rename a function to indicate that it checks for profitability as well
[oota-llvm.git] / lib / Transforms / Scalar / ADCE.cpp
index aef16f7f1cea9dea904228736025ae99624000ff..bdf8029b18ef4694a8f8dd952ccd945497ec08da 100644 (file)
@@ -27,7 +27,6 @@
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/Statistic.h"
 
-
 using namespace llvm;
 
 STATISTIC(NumRemoved, "Number of instructions removed");
@@ -35,7 +34,7 @@ STATISTIC(NumRemoved, "Number of instructions removed");
 namespace {
   struct VISIBILITY_HIDDEN ADCE : public FunctionPass {
     static char ID; // Pass identification, replacement for typeid
-    ADCE() : FunctionPass((intptr_t)&ID) {}
+    ADCE() : FunctionPass(&ID) {}
     
     virtual bool runOnFunction(Function& F);
     
@@ -88,7 +87,7 @@ bool ADCE::runOnFunction(Function& F) {
     NumRemoved++;
     (*I)->eraseFromParent();
   }
-    
+
   return !worklist.empty();
 }