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 | eb913b6b34a81b95ea5f692b710e5766526853c6 (patch) | |
tree | a94ccfd91d40a50825e55a99ff3030247a52f26d /include/llvm/Function.h | |
parent | 18feb92e917a029b72a338e91b5b93f74d26f406 (diff) |
Fix build breakage on 64-bit systems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 594b6efdc2..f78365085f 100644 --- a/include/llvm/Function.h +++ b/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)); } }; |