summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
diff options
context:
space:
mode:
authorSiddharth Bhat <siddu.druid@gmail.com>2017-08-22 09:30:37 +0000
committerSiddharth Bhat <siddu.druid@gmail.com>2017-08-22 09:30:37 +0000
commitcb5155bf6d6702f420a696ea87c86a590d28b84a (patch)
tree27ef519dccd38f4bfb0d2f319f5eaebcdc212794 /polly/lib/CodeGen/ManagedMemoryRewrite.cpp
parent603544863f747985eb3801ea5f43836c6bbc7df5 (diff)
downloadbcm5719-llvm-cb5155bf6d6702f420a696ea87c86a590d28b84a.tar.gz
bcm5719-llvm-cb5155bf6d6702f420a696ea87c86a590d28b84a.zip
[ManagedMemoryRewrite] Use `unit64_t` to store size, not `int`.
llvm-svn: 311440
Diffstat (limited to 'polly/lib/CodeGen/ManagedMemoryRewrite.cpp')
-rw-r--r--polly/lib/CodeGen/ManagedMemoryRewrite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
index 5f62ea6b3d3..2ebe9e00a61 100644
--- a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
+++ b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
@@ -311,7 +311,8 @@ static void rewriteAllocaAsManagedMemory(AllocaInst *Alloca,
Builder.SetInsertPoint(Alloca);
Value *MallocManagedFn = getOrCreatePollyMallocManaged(*Alloca->getModule());
- const int Size = DL.getTypeAllocSize(Alloca->getType()->getElementType());
+ const uint64_t Size =
+ DL.getTypeAllocSize(Alloca->getType()->getElementType());
Value *SizeVal = Builder.getInt64(Size);
Value *RawManagedMem = Builder.CreateCall(MallocManagedFn, {SizeVal});
Value *Bitcasted = Builder.CreateBitCast(RawManagedMem, Alloca->getType());
OpenPOWER on IntegriCloud