diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-12 05:53:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-12 05:53:08 +0000 |
commit | cd87d1e4d1b0097877b0f9c2065900717d2aacba (patch) | |
tree | 535b1d110cd85ad7cd12139950aee36108bfaa86 /test/CodeGen/const-init.c | |
parent | 1961791626ab0ebbd8bf901a37476d527def4edb (diff) |
fix an unintended behavior change in the type system rewrite, which caused us to compile
stuff like this:
typedef struct {
int x, y, z;
} foo_t;
foo_t g;
into:
%"struct.<anonymous>" = type { i32, i32, i32 }
we now get:
%struct.foo_t = type { i32, i32, i32 }
This doesn't change the behavior of the compiler, but makes the IR much easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/const-init.c')
-rw-r--r-- | test/CodeGen/const-init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c index 7062fdba6d..9bc3bbafde 100644 --- a/test/CodeGen/const-init.c +++ b/test/CodeGen/const-init.c @@ -52,14 +52,14 @@ int g9 = (2 + 3i) * (5 + 7i) != (-11 + 29i); int g10 = (2.0 + 3.0i) * (5.0 + 7.0i) != (-11.0 + 29.0i); // PR5108 -// CHECK: @gv1 = global %"struct.<anonymous>" <{ i32 0, i8 7 }>, align 1 +// CHECK: @gv1 = global %struct.anon <{ i32 0, i8 7 }>, align 1 struct { unsigned long a; unsigned long b:3; } __attribute__((__packed__)) gv1 = { .a = 0x0, .b = 7, }; // PR5118 -// CHECK: @gv2 = global %"struct.<anonymous>.0" <{ i8 1, i8* null }>, align 1 +// CHECK: @gv2 = global %struct.anon.0 <{ i8 1, i8* null }>, align 1 struct { unsigned char a; char *b; |