Fix build breakage on 64-bit systems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen
2007-04-17 05:33:04 +00:00
parent 18feb92e91
commit eb913b6b34
3 changed files with 5 additions and 5 deletions

View File

@ -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));
}
};