Fix svace: uninit variable (#6948)
author이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 27 Aug 2019 05:56:22 +0000 (14:56 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 27 Aug 2019 05:56:22 +0000 (14:56 +0900)
- Fix WGID 405904
- Fix by adding initialization

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
runtimes/neurun/core/include/model/OperandInfo.h

index 6e21dcc..036306e 100644 (file)
@@ -54,7 +54,8 @@ public:
    * @brief     Construct a new OperandInfo object
    * @param[in] origin info for copy
    */
-  OperandInfo(const OperandInfo &origin) : _shape(origin.shape()), _typeInfo(origin.typeInfo())
+  OperandInfo(const OperandInfo &origin)
+      : _shape(origin.shape()), _typeInfo(origin.typeInfo()), _layout(origin.layout())
   {
     // DO NOTHING
   }