mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 01:42:09 +00:00
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:
parent
18feb92e91
commit
eb913b6b34
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user