Fix coverity1148326 (#4131)
authorchunseoklee <chunseoklee@naver.com>
Tue, 8 Sep 2020 11:05:02 +0000 (20:05 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Wed, 9 Sep 2020 06:58:55 +0000 (15:58 +0900)
commit0d2787ea4bdc332168c313a3e56b424454d7acbd
tree28fcff5e2e094ff4bce73396a15a1e2cd5f2cd3c
parent74476a2d0296bdad70a2f7f90bc7419a8b05bffd
Fix coverity1148326 (#4131)

Fix coverity defect : Integer overflowed argument

```
6. overflow_sink: Overflowed or truncated value (or a value computed from an overflowed or truncated value) num_of_interm_tensors - 1U used as critical argument to function. [show details]
    _interm_tensors[num_of_interm_tensors - 1].allocator()->allocate();
```

ONE-DCO-1.0-Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
compute/ARMComputeEx/src/runtime/CL/functions/CLReduceOperation.cpp