summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/PrintSCC.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-18 05:09:16 +0000
committerDan Gohman <gohman@apple.com>2009-02-18 05:09:16 +0000
commit38a9631d5f04fe6b20909cfc2295f3dcc85cc873 (patch)
tree33f284eae4e98de734f1c3187847f8c4f3d92dcd /llvm/tools/opt/PrintSCC.cpp
parent5805c98526ab0c0f5f1233c6ae95c79c77217fd5 (diff)
downloadbcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.tar.gz
bcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.zip
Eliminate several more unnecessary intptr_t casts.
llvm-svn: 64888
Diffstat (limited to 'llvm/tools/opt/PrintSCC.cpp')
-rw-r--r--llvm/tools/opt/PrintSCC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/opt/PrintSCC.cpp b/llvm/tools/opt/PrintSCC.cpp
index f314baaba93..be652644a6b 100644
--- a/llvm/tools/opt/PrintSCC.cpp
+++ b/llvm/tools/opt/PrintSCC.cpp
@@ -36,7 +36,7 @@ using namespace llvm;
namespace {
struct CFGSCC : public FunctionPass {
static char ID; // Pass identification, replacement for typeid
- CFGSCC() : FunctionPass((intptr_t)&ID) {}
+ CFGSCC() : FunctionPass(&ID) {}
bool runOnFunction(Function& func);
void print(std::ostream &O, const Module* = 0) const { }
@@ -48,7 +48,7 @@ namespace {
struct CallGraphSCC : public ModulePass {
static char ID; // Pass identification, replacement for typeid
- CallGraphSCC() : ModulePass((intptr_t)&ID) {}
+ CallGraphSCC() : ModulePass(&ID) {}
// run - Print out SCCs in the call graph for the specified module.
bool runOnModule(Module &M);
OpenPOWER on IntegriCloud