Got error during compilation after upgrade in magento 2.2.3
Interception cache generation... 6/7 [========================>---] 85% 42 secs 342.0 MiBErrors during compilation: Magento\Backend\Model\View\Layout\GeneratorPool Incompatible argument type: Required type: \Magento\Framework\View\Layout\Condition\ConditionFactory. Actual type: \Magento\Framework\App\Config\ScopeConfigInterface; File: /chroot/home/discount/m223/html/vendor/magento/module-backend/Model/View/Layout/GeneratorPool.php
Total Errors Count: 1
[Magento\Framework\Validator\Exception] Error during compilation
AND also, it's changed Cache folder permission 777 to 775 during compile.