Skip to content

llvm-gcc packing empty structs #1789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lattner opened this issue May 15, 2007 · 1 comment
Closed

llvm-gcc packing empty structs #1789

lattner opened this issue May 15, 2007 · 1 comment
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag miscompilation

Comments

@lattner
Copy link
Collaborator

lattner commented May 15, 2007

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

@llvmbot
Copy link
Member

llvmbot commented May 16, 2007

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm-tools All llvm tools that do not have corresponding tag miscompilation
Projects
None yet
Development

No branches or pull requests

2 participants