From 276222a5ae189ed5c6a2afb248d4c8f0335585b4 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 12 Aug 2007 08:12:35 +0000 Subject: 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 --- include/llvm/PassManagers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/PassManagers.h') diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index bcdea2b..b740f81 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -341,7 +341,7 @@ class FPPassManager : public ModulePass, public PMDataManager { public: static char ID; explicit FPPassManager(int Depth) - : ModulePass((intptr_t)&ID), PMDataManager(Depth) { } + : ModulePass(intptr_t(&ID)), PMDataManager(Depth) { } /// run - Execute all of the passes scheduled for execution. Keep track of /// whether any of the passes modifies the module, and if so, return true. -- cgit v1.1