mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 09:18:30 +00:00
Fix Size Typing
Stores sizes as uint64_t to avoid possible truncation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fd245d97f1
commit
94fca8300d
@ -1575,7 +1575,7 @@ static void EmitGlobalConstantArray(const ConstantArray *CA, unsigned AddrSpace,
|
||||
int Value = isRepeatedByteSequence(CA, AP.TM);
|
||||
|
||||
if (Value != -1) {
|
||||
unsigned Bytes = AP.TM.getTargetData()->getTypeAllocSize(CA->getType());
|
||||
uint64_t Bytes = AP.TM.getTargetData()->getTypeAllocSize(CA->getType());
|
||||
AP.OutStreamer.EmitFill(Bytes, Value, AddrSpace);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user