mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Fix type to avoid problems on 32-bit builds
lto::InputFile::Symbol::getCommonSize should return uint64_t instead of size_t since it is returning the result of DataLayout::getTypeAllocSize which returns uint64_t, and the result of getCommonSize is assigned to a uint64_t variable. On 32-bit builds size_t is unsigned int and there are type errors. This was introduced in r278338. llvm-svn: 278512
This commit is contained in:
parent
0e7885981e
commit
046c34ed75
@ -178,7 +178,7 @@ public:
|
||||
return GV->getComdat();
|
||||
return nullptr;
|
||||
}
|
||||
size_t getCommonSize() const {
|
||||
uint64_t getCommonSize() const {
|
||||
assert(Flags & object::BasicSymbolRef::SF_Common);
|
||||
if (!GV)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user