aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-08-31 21:34:20 +0000
committerDavid Greene <greened@obbligato.org>2011-08-31 21:34:20 +0000
commit94fca8300d61cc038030c31014116df38b74e986 (patch)
treedc68f5b97f5d89e9f7275e217cf8bcbd19497409 /lib/CodeGen
parentfd245d97f1ab96cde48dfa0e9c54c47dc195cff3 (diff)
downloadexternal_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')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
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 {