https://llvm.org/bugs/show_bug.cgi?id=24130

            Bug ID: 24130
           Summary: missing comdat at -O1
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified

Given

struct A {
  virtual ~A();
};
struct B {
  virtual void foo();
};
struct C : public A, public B {
  void foo() {}
};
struct D : public C {
  ~D();
};
D::~D() {}

We produce

define linkonce_odr void @_ZThn8_N1C3fooEv(%struct.C* %this) unnamed_addr #0
comdat align 2 {

at -O0 and

define linkonce_odr void @_ZThn8_N1C3fooEv(%struct.C* nocapture %this)
unnamed_addr #3 align 2 {

at -O1

-- 
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