Skip to content

regression (r315984): fatal error: error in backend: Broken function found (Did not see access type in access path!) #35072

@hyp

Description

@hyp
Bugzilla Link 35724
Resolution FIXED
Resolved on Nov 28, 2018 09:06
Version trunk
OS All
Blocks #35152
CC @hyp,@kosarev
Fixed by commit(s) r321999

Extended Description

The commit r315984 causes a backend crash in this code sample:

class a {
public:
int b;
};
class c : public a {};
class d {
public:
c f;
};

int fn1(d *e) { return (&(e->f))->b == 0; }

This is the crash:

Did not see access type in access path!
%2 = load i32, i32* %b, align 4, !tbaa !​7
!​7 = !{#8, !​10, i64 0}
fatal error: error in backend: Broken function found, compilation aborted!

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