Remove unnecessary casts.
authorDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 15:15:10 +0000 (15:15 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 11 Aug 2009 15:15:10 +0000 (15:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78664 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocPBQP.cpp
lib/Transforms/IPO/MergeFunctions.cpp
lib/Transforms/Utils/SSI.cpp

index 3681b79078ea2db0141714cf8c49a6681c95ebfe..9e77abc59e7a73e7882b0f574ec41ddd922337ad 100644 (file)
@@ -71,7 +71,7 @@ namespace {
     static char ID;
     
     /// Construct a PBQP register allocator.
-    PBQPRegAlloc() : MachineFunctionPass((intptr_t)&ID) {}
+    PBQPRegAlloc() : MachineFunctionPass(&ID) {}
 
     /// Return the pass name.
     virtual const char* getPassName() const throw() {
index db8a817c9fd9fa899c1b8c751ce8240e6a5099d6..cb51bc3903f48e80a65afed6c9b605a616005692 100644 (file)
@@ -64,7 +64,7 @@ STATISTIC(NumFunctionsMerged, "Number of functions merged");
 namespace {
   struct VISIBILITY_HIDDEN MergeFunctions : public ModulePass {
     static char ID; // Pass identification, replacement for typeid
-    MergeFunctions() : ModulePass((intptr_t)&ID) {}
+    MergeFunctions() : ModulePass(&ID) {}
 
     bool runOnModule(Module &M);
   };
index 0585561a30b6eef7b964c44e66d17ddddb60437e..8178367dd40212074d7e710b1665f7b94f96d284 100644 (file)
@@ -403,7 +403,7 @@ static RegisterPass<SSI> X("ssi", "Static Single Information Construction");
 namespace {
   struct VISIBILITY_HIDDEN SSIEverything : public FunctionPass {
     static char ID; // Pass identification, replacement for typeid
-    SSIEverything() : FunctionPass((intptr_t)&ID) {}
+    SSIEverything() : FunctionPass(&ID) {}
 
     bool runOnFunction(Function &F);