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

            Bug ID: 21368
           Summary: delete of final class not devirtualized
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

struct A {
  virtual ~A() {}
};

struct B final : public A {};

void foo(B *b) { delete b; }

===

For 'foo' we emit a dtor call through the vtable even though the 'B' is final.

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