diff --git a/hurricane/src/hurricane/Go.cpp b/hurricane/src/hurricane/Go.cpp index d8dae671..ee1e4523 100644 --- a/hurricane/src/hurricane/Go.cpp +++ b/hurricane/src/hurricane/Go.cpp @@ -61,7 +61,9 @@ void Go::_postCreate() { Inherit::_postCreate(); - if (!autoMaterializationIsDisabled()) materialize(); // materialized after entire post creation + if (not autoMaterializationIsDisabled()) { + materialize(); + } // materialized after entire post creation } diff --git a/hurricane/src/hurricane/Instance.cpp b/hurricane/src/hurricane/Instance.cpp index bbc64dd6..32753f4f 100644 --- a/hurricane/src/hurricane/Instance.cpp +++ b/hurricane/src/hurricane/Instance.cpp @@ -378,9 +378,9 @@ void Instance::setPlacementStatus(const PlacementStatus& placementstatus) if (placementstatus != _placementStatus) { invalidate(true); - if (_placementStatus == PlacementStatus::UNPLACED) + if (_placementStatus == PlacementStatus::UNPLACED) { materialize (); - else if ( placementstatus == PlacementStatus::UNPLACED ) + } else if (placementstatus == PlacementStatus::UNPLACED) unmaterialize (); _placementStatus = placementstatus; @@ -457,7 +457,8 @@ void Instance::_postCreate() } bool autoMaterialization = not autoMaterializationIsDisabled(); - disableAutoMaterialization(); + if ( _placementStatus == PlacementStatus::UNPLACED ) + disableAutoMaterialization(); Inherit::_postCreate();