Skip to content

delete of final class not devirtualized #21742

@d0k

Description

@d0k
Bugzilla Link 21368
Version trunk
OS All
CC @hfinkel,@hjyamauchi

Extended Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions