[LLVMbugs] [Bug 16465] New: struct array duplication

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 26 02:03:37 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16465

            Bug ID: 16465
           Summary: struct array duplication
           Product: dragonegg
           Version: 3.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
          Assignee: baldrick at free.fr
          Reporter: 15026edff505 at b04e8d0e182e.anonbox.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10776
  --> http://llvm.org/bugs/attachment.cgi?id=10776&action=edit
test case

A struct:

struct s_t {
    int a;
    int b;
    int c;
    s_t *next;
    int d;
    int e;
    char arr[4];
};

gets translated into (-O0):

%struct.s_t = type { i32, i32, i32, %struct.s_t*, i32, i32, [4 x i8], [4 x i8]
}

with two arrays (arr) instead of one. Clang creates:

%struct.s_t = type { i32, i32, i32, %struct.s_t*, i32, i32, [4 x i8] }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130626/f789076e/attachment.html>


More information about the llvm-bugs mailing list