diff options
-rw-r--r-- | polly/lib/CodeGen/ManagedMemoryRewrite.cpp | 3 |
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()); |