Skip to content

miscompilation with -fstrict-vtable-pointers #105537

@sylvain-audi

Description

@sylvain-audi

I noticed invalid code generation using -fstrict-vtable-pointers on clang 18.1.0.

Here is a repro: https://godbolt.org/z/h9bx14bWG

Notice the @llvm.memcpy.p0.p0.i64 call with an undef parameter, it seems to be the cause of the runtime crash.

Notes:

@antoniofrighetto @nikic could you identify whether this is an SROA bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions