[LLVMbugs] [Bug 20477] New: MS ABI: clang generates unnecessary vtordisp adjustment

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 28 13:52:36 PDT 2014


            Bug ID: 20477
           Summary: MS ABI: clang generates unnecessary vtordisp
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

struct A {
  virtual A *f() { return this; }
struct B {
  B() {}
  virtual B *f() { return this; }
B b;

While both compilers agree on what B has in it's vftable in the first entry,
the second entry is different for both compilers.

For this entry, CL has ?f at B@@UAEPAU1 at XZ which performs only a return
However, clang-cl has does a 'vtordisp' adjustment *and* a return adjustment.

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/20140728/21d004c2/attachment.html>

More information about the llvm-bugs mailing list