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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs