aboutsummaryrefslogtreecommitdiff
path: root/src/graph/backends/NEON/NEFunctionFactory.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-10-21 18:33:36 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-12-15 18:07:31 +0000
commit4d9687e70e2d71097cd43929d5f63377c3c44523 (patch)
tree09b5b89fd51d7b44613f21b889669939bc2c6bb3 /src/graph/backends/NEON/NEFunctionFactory.cpp
parentaa51a5ba9a3f05be08b94859b53c398edee5d2e3 (diff)
downloadComputeLibrary-4d9687e70e2d71097cd43929d5f63377c3c44523.tar.gz
Address RVO issue on some compilers
Suppresses pessimizing-move during clang compilation as for some gcc toolchains RVO is not ensured until C++17 thus an explicit call to std::move might be required to avoid compilation error for non-copyable ojects (e.g. std::unique_ptr) Resolves: COMPMID-3599 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: Ie3fa44fb0cf631655aecbeb6c82021a68f500a33 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4230 Reviewed-by: Giorgio Arena <giorgio.arena@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/graph/backends/NEON/NEFunctionFactory.cpp')
-rw-r--r--src/graph/backends/NEON/NEFunctionFactory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/graph/backends/NEON/NEFunctionFactory.cpp b/src/graph/backends/NEON/NEFunctionFactory.cpp
index b2bd87070c..6a96f0a5b9 100644
--- a/src/graph/backends/NEON/NEFunctionFactory.cpp
+++ b/src/graph/backends/NEON/NEFunctionFactory.cpp
@@ -32,7 +32,6 @@
#include "arm_compute/graph/nodes/Nodes.h"
#include "arm_compute/runtime/CPP/CPPFunctions.h"
#include "arm_compute/runtime/NEON/NEFunctions.h"
-#include "src/core/NEON/NEKernels.h"
#include "support/Cast.h"
#include "support/ToolchainSupport.h"
@@ -116,7 +115,7 @@ std::unique_ptr<IFunction> create_normalization_layer<NENormalizationLayer, NETa
<< " Normalization info: " << norm_info.type()
<< std::endl);
- return RETURN_UNIQUE_PTR(func);
+ return std::move(func);
}
} // namespace detail