diff --git a/bootstrap/coriolisEnv.py b/bootstrap/coriolisEnv.py index 1bb6412c..535e8dd7 100755 --- a/bootstrap/coriolisEnv.py +++ b/bootstrap/coriolisEnv.py @@ -116,7 +116,7 @@ def guessOs (): print " (using: \"%s\")" % osType ldLibraryPath = os.getenv('LD_LIBRARY_PATH') - if 'devtoolset' in ldLibraryPath: useDevtoolset2 = False + if ldLibraryPath and 'devtoolset' in ldLibraryPath: useDevtoolset2 = False if libDir == 'lib64' and not os.path.exists('/usr/lib64'): libDir = 'lib' diff --git a/hurricane/src/hurricane/Instance.cpp b/hurricane/src/hurricane/Instance.cpp index 27aab002..c719e922 100644 --- a/hurricane/src/hurricane/Instance.cpp +++ b/hurricane/src/hurricane/Instance.cpp @@ -468,10 +468,11 @@ Instance* Instance::getClone(Cell* cloneCell) const Instance* clone = Instance::create( cloneCell , getName() , getMasterCell() + , getTransformation() , getPlacementStatus() ); - forEach( Plug*, iplug, getPlugs() ) { + for( Plug* iplug : getPlugs() ) { if (iplug->isConnected()) { Plug* clonePlug = clone->getPlug( iplug->getMasterNet() ); Net* cloneNet = cloneCell->getNet( iplug->getNet()->getName() );