diff options
| author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-17 05:33:04 +0000 |
|---|---|---|
| committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-17 05:33:04 +0000 |
| commit | 38be56ddf51ba190bf12da9e61f7d7629a3408d2 (patch) | |
| tree | 8d23704deb410cb37c3ad4f4d2840746bfa1fcfa | |
| parent | 3c2ff10b93def1b4a807134588ffab55d1e231f3 (diff) | |
| download | bcm5719-llvm-38be56ddf51ba190bf12da9e61f7d7629a3408d2.tar.gz bcm5719-llvm-38be56ddf51ba190bf12da9e61f7d7629a3408d2.zip | |
Fix build breakage on 64-bit systems.
llvm-svn: 36193
| -rw-r--r-- | llvm/include/llvm/BasicBlock.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/Function.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/Module.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/BasicBlock.h b/llvm/include/llvm/BasicBlock.h index 0a22f44b985..53d2e4c841a 100644 --- a/llvm/include/llvm/BasicBlock.h +++ b/llvm/include/llvm/BasicBlock.h @@ -199,7 +199,7 @@ public: static unsigned getInstListOffset() { BasicBlock *Obj = 0; - return reinterpret_cast<unsigned>(&Obj->InstList); + return unsigned(reinterpret_cast<uintptr_t>(&Obj->InstList)); } }; diff --git a/llvm/include/llvm/Function.h b/llvm/include/llvm/Function.h index 594b6efdc2b..f78365085fb 100644 --- a/llvm/include/llvm/Function.h +++ b/llvm/include/llvm/Function.h @@ -246,11 +246,11 @@ public: static unsigned getBasicBlockListOffset() { Function *Obj = 0; - return reinterpret_cast<unsigned>(&Obj->BasicBlocks); + return unsigned(reinterpret_cast<uintptr_t>(&Obj->BasicBlocks)); } static unsigned getArgumentListOffset() { Function *Obj = 0; - return reinterpret_cast<unsigned>(&Obj->ArgumentList); + return unsigned(reinterpret_cast<uintptr_t>(&Obj->ArgumentList)); } }; diff --git a/llvm/include/llvm/Module.h b/llvm/include/llvm/Module.h index 1d82e2aad3d..ecc9c0b8e20 100644 --- a/llvm/include/llvm/Module.h +++ b/llvm/include/llvm/Module.h @@ -318,11 +318,11 @@ public: static unsigned getFunctionListOffset() { Module *Obj = 0; - return reinterpret_cast<unsigned>(&Obj->FunctionList); + return unsigned(reinterpret_cast<uintptr_t>(&Obj->FunctionList)); } static unsigned getGlobalVariableListOffset() { Module *Obj = 0; - return reinterpret_cast<unsigned>(&Obj->GlobalList); + return unsigned(reinterpret_cast<uintptr_t>(&Obj->GlobalList)); } }; |

