summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/CodeGen/ManagedMemoryRewrite.cpp')
-rw-r--r--polly/lib/CodeGen/ManagedMemoryRewrite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
index 4546dcb458c..5f62ea6b3d3 100644
--- a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
+++ b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
@@ -244,7 +244,7 @@ replaceGlobalArray(Module &M, const DataLayout &DL, GlobalVariable &Array,
BasicBlock *Start = BasicBlock::Create(M.getContext(), "entry", F);
Builder.SetInsertPoint(Start);
- int ArraySizeInt = DL.getTypeAllocSizeInBits(ArrayTy) / 8;
+ const uint64_t ArraySizeInt = DL.getTypeAllocSize(ArrayTy);
Value *ArraySize = Builder.getInt64(ArraySizeInt);
ArraySize->setName("array.size");
OpenPOWER on IntegriCloud