summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/LoopExtractor.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-04 17:05:41 +0000
committerDan Gohman <gohman@apple.com>2008-09-04 17:05:41 +0000
commita79db30d284205cf27d90f9a174a7eb28c8afcb8 (patch)
tree6889329ccf26fd620cce0799a3cdf94b0acde4e3 /llvm/lib/Transforms/IPO/LoopExtractor.cpp
parent4b19157ba913903a07284ad3c066da9a7e7fc8c6 (diff)
downloadbcm5719-llvm-a79db30d284205cf27d90f9a174a7eb28c8afcb8.tar.gz
bcm5719-llvm-a79db30d284205cf27d90f9a174a7eb28c8afcb8.zip
Tidy up several unbeseeming casts from pointer to intptr_t.
llvm-svn: 55779
Diffstat (limited to 'llvm/lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/LoopExtractor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/LoopExtractor.cpp b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
index 8e55b3f0919..0c654438d50 100644
--- a/llvm/lib/Transforms/IPO/LoopExtractor.cpp
+++ b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
@@ -41,7 +41,7 @@ namespace {
unsigned NumLoops;
explicit LoopExtractor(unsigned numLoops = ~0)
- : FunctionPass((intptr_t)&ID), NumLoops(numLoops) {}
+ : FunctionPass(&ID), NumLoops(numLoops) {}
virtual bool runOnFunction(Function &F);
@@ -167,11 +167,11 @@ namespace {
public:
static char ID; // Pass identification, replacement for typeid
explicit BlockExtractorPass(const std::vector<BasicBlock*> &B)
- : ModulePass((intptr_t)&ID), BlocksToNotExtract(B) {
+ : ModulePass(&ID), BlocksToNotExtract(B) {
if (!BlockFile.empty())
LoadFile(BlockFile.c_str());
}
- BlockExtractorPass() : ModulePass((intptr_t)&ID) {}
+ BlockExtractorPass() : ModulePass(&ID) {}
bool runOnModule(Module &M);
};
OpenPOWER on IntegriCloud