[LLVMbugs] [Bug 19545] New: Missing devirtualization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 24 06:32:02 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19545

            Bug ID: 19545
           Summary: Missing devirtualization
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In the following example clang produces non virtual calls in g, but not in h.

struct foo {
  virtual int f() {return 0;}
};
int g(foo x) {
  return x.f();
}
int h(foo x[2]) {
  return x[0].f();
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140424/6a8102de/attachment.html>


More information about the llvm-bugs mailing list