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

           Summary: missed optimization for inline virtual methods
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Given the translation unit

struct foo {
  virtual void bar();
  virtual void baz() {}
};
void zed() {
  foo b;
  b.baz();
}

we currently produce

define linkonce_odr void @_ZN3foo3bazEv

it should probably be available_externally. Given that the function is virtual
and we know we will have a vtable in some other translation unit, we can
produce this one as available_externally.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to