From 299fdd31bd8e1add3ac557a5e630de55b1b6659c Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Wed, 1 May 2019 13:03:59 +0100 Subject: COMPMID-2177 Fix clang warnings Change-Id: I4beacfd714ee3ed771fd174cce5d8009a2961380 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/1065 Reviewed-by: Giuseppe Rossini Tested-by: Arm Jenkins --- src/graph/detail/CrossLayerMemoryManagerHelpers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/graph/detail/CrossLayerMemoryManagerHelpers.cpp') diff --git a/src/graph/detail/CrossLayerMemoryManagerHelpers.cpp b/src/graph/detail/CrossLayerMemoryManagerHelpers.cpp index 7fc5ca0576..5e31309c3d 100644 --- a/src/graph/detail/CrossLayerMemoryManagerHelpers.cpp +++ b/src/graph/detail/CrossLayerMemoryManagerHelpers.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -136,7 +136,7 @@ TaskHandles get_transition_handles(GraphContext &ctx, // Then add it to the list of transition buffers ITensorHandle *tensor_handle = input_edge->tensor()->handle()->parent_handle(); IMemoryGroup *mm_group = get_memory_group_from_handle(ctx, tensor_handle); - transition_handles.input_handles.push_back(std::make_pair(tensor_handle, mm_group)); + transition_handles.input_handles.emplace_back(std::make_pair(tensor_handle, mm_group)); } } @@ -149,7 +149,7 @@ TaskHandles get_transition_handles(GraphContext &ctx, { ITensorHandle *tensor_handle = output_tensor->handle()->parent_handle(); IMemoryGroup *mm_group = get_memory_group_from_handle(ctx, tensor_handle); - transition_handles.output_handles.push_back(std::make_pair(tensor_handle, mm_group)); + transition_handles.output_handles.emplace_back(std::make_pair(tensor_handle, mm_group)); } } -- cgit v1.2.1