aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2007-04-17 05:33:04 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2007-04-17 05:33:04 +0000
commiteb913b6b34a81b95ea5f692b710e5766526853c6 (patch)
treea94ccfd91d40a50825e55a99ff3030247a52f26d /include/llvm/Module.h
parent18feb92e917a029b72a338e91b5b93f74d26f406 (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/Module.h')
-rw-r--r--include/llvm/Module.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 1d82e2aad3..ecc9c0b8e2 100644
--- a/include/llvm/Module.h
+++ b/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));
}
};