Skip to content

llvm-gcc packing empty structs #1789

@lattner

Description

@lattner
Bugzilla Link 1417
Resolution FIXED
Resolved on Feb 22, 2010 12:53
Version 2.0
OS All

Extended Description

This C code:

struct { } *X;

compiles into:

   %struct.anon = type <{  }>

@​X = weak global %struct.anon* null ; <%struct.anon**> [#uses=0]

I would expect:

   %struct.anon = type {  }

@​X = weak global %struct.anon* null ; <%struct.anon**> [#uses=0]

-Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm-toolsAll llvm tools that do not have corresponding tagmiscompilation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions