Skip to content

Commit

Permalink
[nnc] Fix init order error (#14502)
Browse files Browse the repository at this point in the history
This will fix initializer order compilation error.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark authored Dec 30, 2024
1 parent 58761db commit d2680f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions compiler/nnc/backends/acl_soft_backend/ArtifactModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ class ArtifactVariable : public ArtifactNamed
ArtifactVariable(std::string type_name, std::string var_name,
std::list<std::shared_ptr<ArtifactExpr>> dimensions = {},
std::list<std::shared_ptr<ArtifactExpr>> initializers = {})
: _typeName(std::move(type_name)), _dimensions(std::move(dimensions)),
_initializers(std::move(initializers)), ArtifactNamed(std::move(var_name))
: ArtifactNamed(std::move(var_name)), _typeName(std::move(type_name)),
_dimensions(std::move(dimensions)), _initializers(std::move(initializers))
{
}

Expand Down
6 changes: 3 additions & 3 deletions compiler/nnc/include/pass/PassData.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PassData
public:
/* implicit */ PassData(std::nullptr_t data)
: // NOLINT(google-explicit-constructor, hicpp-explicit-conversions)
_dataContainer{.unknown = data}, _dataType(PDT::UNKNOWN)
_dataType(PDT::UNKNOWN), _dataContainer{.unknown = data}
{
}

Expand All @@ -40,7 +40,7 @@ class PassData
*/
/* implicit */ PassData(mir::Graph *graph)
: // NOLINT(google-explicit-constructor, hicpp-explicit-conversions)
_dataContainer{.graph = graph}, _dataType(PDT::GRAPH)
_dataType(PDT::GRAPH), _dataContainer{.graph = graph}
{
}

Expand All @@ -59,7 +59,7 @@ class PassData
*/
/* implicit */ PassData(mir::TensorVariant *tv)
: // NOLINT(google-explicit-constructor, hicpp-explicit-conversions)
_dataContainer{.tensorVariant = tv}, _dataType(PDT::TENSOR_VARIANT)
_dataType(PDT::TENSOR_VARIANT), _dataContainer{.tensorVariant = tv}
{
}

Expand Down

0 comments on commit d2680f8

Please sign in to comment.