<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PGO: complete constructors that don't call base constructors aren't instrumented"
   href="http://bugs.llvm.org/show_bug.cgi?id=31992">31992</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PGO: complete constructors that don't call base constructors aren't instrumented
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>arphaman@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Complete constructors that don't invoke base constructors of the same class
aren't instrumented by PGO. This is a problem when it comes to virtual
inheritance.
The following sample reproduces this issue:

class Foo
{
public:
    Foo()
    {
        // PGO is there!
    }
};

class Bar : virtual public Foo
{
public:
   Bar()
   {
        // No PGO instrumentation emitted
   };
};

int main (int argc, char* argv[])
{
    Bar b;
}

Right now clang always assumes that the complete constructors call into the
base constructors, which isn't true as seen in this bug, so we have to fix
that.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>