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

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

View File

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

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