diff options
| author | Dan Gohman <gohman@apple.com> | 2009-08-11 15:15:10 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-08-11 15:15:10 +0000 |
| commit | 38484ceec99cf16d8644eb0649ea055e0e2db021 (patch) | |
| tree | 96118555ccd92a0744ffddd24c6b6b02db5a0db0 /llvm/lib | |
| parent | e02f9ba9b1250bfd5f65a1aaebddc49354669e14 (diff) | |
| download | bcm5719-llvm-38484ceec99cf16d8644eb0649ea055e0e2db021.tar.gz bcm5719-llvm-38484ceec99cf16d8644eb0649ea055e0e2db021.zip | |
Remove unnecessary casts.
llvm-svn: 78664
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocPBQP.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Utils/SSI.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp index 3681b79078e..9e77abc59e7 100644 --- a/llvm/lib/CodeGen/RegAllocPBQP.cpp +++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp @@ -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() { diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index db8a817c9fd..cb51bc3903f 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp @@ -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); }; diff --git a/llvm/lib/Transforms/Utils/SSI.cpp b/llvm/lib/Transforms/Utils/SSI.cpp index 0585561a30b..8178367dd40 100644 --- a/llvm/lib/Transforms/Utils/SSI.cpp +++ b/llvm/lib/Transforms/Utils/SSI.cpp @@ -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); |

