summaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/Dominators.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-08-12 08:12:35 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-08-12 08:12:35 +0000
commit276222a5ae189ed5c6a2afb248d4c8f0335585b4 (patch)
tree091ab79822fefb238e55ea959e4c1a2c19f7e6cb /include/llvm/Analysis/Dominators.h
parent98147a306e9b3be6d52ad26f7836b89f46be99cb (diff)
downloadexternal_llvm-276222a5ae189ed5c6a2afb248d4c8f0335585b4.zip
external_llvm-276222a5ae189ed5c6a2afb248d4c8f0335585b4.tar.gz
external_llvm-276222a5ae189ed5c6a2afb248d4c8f0335585b4.tar.bz2
Change casts from old style to new style. This helps document the details
better, gives the compiler a chance to validate the cast and reduces warnings if the user turns on -Wold-style-cast option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/Dominators.h')
-rw-r--r--include/llvm/Analysis/Dominators.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index a57f17b..dfb73bd 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/include/llvm/Analysis/Dominators.h
@@ -282,7 +282,7 @@ protected:
class DominatorTree : public DominatorTreeBase {
public:
static char ID; // Pass ID, replacement for typeid
- DominatorTree() : DominatorTreeBase((intptr_t)&ID, false) {}
+ DominatorTree() : DominatorTreeBase(intptr_t(&ID), false) {}
BasicBlock *getRoot() const {
assert(Roots.size() == 1 && "Should always have entry node!");
@@ -399,7 +399,7 @@ class DominanceFrontier : public DominanceFrontierBase {
public:
static char ID; // Pass ID, replacement for typeid
DominanceFrontier() :
- DominanceFrontierBase((intptr_t)& ID, false) {}
+ DominanceFrontierBase(intptr_t(&ID), false) {}
BasicBlock *getRoot() const {
assert(Roots.size() == 1 && "Should always have entry node!");