summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
diff options
context:
space:
mode:
authorEwan Crawford <ewan@codeplay.com>2015-10-21 10:27:10 +0000
committerEwan Crawford <ewan@codeplay.com>2015-10-21 10:27:10 +0000
commit2d62328addea84723000987c24cc665838020ab0 (patch)
tree8bb9fc43d12fbd4a65ac27d588a982a82565a52b /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
parent65a16e56b976f5e9e10c197df927da358257ab9c (diff)
downloadbcm5719-llvm-2d62328addea84723000987c24cc665838020ab0.tar.gz
bcm5719-llvm-2d62328addea84723000987c24cc665838020ab0.zip
[RenderScript] Fix out of bounds warning.
llvm-svn: 250891
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp')
-rw-r--r--lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
index 3bd56981a1b..0a28eb654af 100644
--- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
@@ -1624,9 +1624,9 @@ RenderScriptRuntime::SaveAllocation(Stream &strm, const uint32_t alloc_id, const
head.hdr_size = static_cast<uint16_t>(sizeof(AllocationDetails::FileHeader));
head.type = static_cast<uint16_t>(*alloc->type.get());
head.kind = static_cast<uint32_t>(*alloc->type_kind.get());
- head.dims[1] = static_cast<uint32_t>(alloc->dimension.get()->dim_1);
- head.dims[2] = static_cast<uint32_t>(alloc->dimension.get()->dim_2);
- head.dims[3] = static_cast<uint32_t>(alloc->dimension.get()->dim_3);
+ head.dims[0] = static_cast<uint32_t>(alloc->dimension.get()->dim_1);
+ head.dims[1] = static_cast<uint32_t>(alloc->dimension.get()->dim_2);
+ head.dims[2] = static_cast<uint32_t>(alloc->dimension.get()->dim_3);
head.element_size = static_cast<uint32_t>(GetElementSize(alloc));
// Write the file header
OpenPOWER on IntegriCloud