C1: Uninitialized PhiResolver::_loop field

XMLWordPrintable

    • b07

        SonarCloud complains that `PhiResolver::_loop` field is not initialized after leaving the constructor.

        There is an assert in `PhiResolver::move`, which implies the default value should be `nullptr`:

        ```
        void PhiResolver::move(ResolveNode* src, ResolveNode* dest) {
        ...
            // cylce in graph detected
            assert(_loop == nullptr, "only one loop valid!");
            _loop = dest;
        ...
        }
        ```

              Assignee:
              Chad Rakoczy
              Reporter:
              Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: