diff options
author | David Greene <greened@obbligato.org> | 2011-08-31 21:34:20 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-08-31 21:34:20 +0000 |
commit | 94fca8300d61cc038030c31014116df38b74e986 (patch) | |
tree | dc68f5b97f5d89e9f7275e217cf8bcbd19497409 /lib/CodeGen/AsmPrinter | |
parent | fd245d97f1ab96cde48dfa0e9c54c47dc195cff3 (diff) | |
download | external_llvm-94fca8300d61cc038030c31014116df38b74e986.zip external_llvm-94fca8300d61cc038030c31014116df38b74e986.tar.gz external_llvm-94fca8300d61cc038030c31014116df38b74e986.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index e888985..f7341fe 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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 { |