summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
diff options
context:
space:
mode:
authorSiddharth Bhat <siddu.druid@gmail.com>2017-08-22 09:27:41 +0000
committerSiddharth Bhat <siddu.druid@gmail.com>2017-08-22 09:27:41 +0000
commit603544863f747985eb3801ea5f43836c6bbc7df5 (patch)
treebc8f2d9ab551d152db9406f07e86c0cf1fd133cd /polly/lib/CodeGen/ManagedMemoryRewrite.cpp
parentb9de2b4871f3c6ca6c05011c1345e786b4074a1c (diff)
downloadbcm5719-llvm-603544863f747985eb3801ea5f43836c6bbc7df5.tar.gz
bcm5719-llvm-603544863f747985eb3801ea5f43836c6bbc7df5.zip
[ManagedMemoryRewrite] Get size in bytes rather than in bits and dividing by 8.
llvm-svn: 311439
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