diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2009-10-29 11:27:06 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2009-10-29 11:27:06 +0000 |
commit | 09bd8656c308b6ca1e66f6b6eeaa2675fc548984 (patch) | |
tree | 64d6f651a3fb135a7b3b82e7a0eb1b13bb64c9ea /clang/test/CodeGen/union-init2.c | |
parent | 901668f30663922e145ba5a0befa18dbc653f622 (diff) | |
download | bcm5719-llvm-09bd8656c308b6ca1e66f6b6eeaa2675fc548984.tar.gz bcm5719-llvm-09bd8656c308b6ca1e66f6b6eeaa2675fc548984.zip |
make clang emit undefs for padding of structs and unions instead of zeros. this enables constant compaction optimizations.
llvm-svn: 85504
Diffstat (limited to 'clang/test/CodeGen/union-init2.c')
-rw-r--r-- | clang/test/CodeGen/union-init2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/union-init2.c b/clang/test/CodeGen/union-init2.c index 184d75f4715..e782425cf2b 100644 --- a/clang/test/CodeGen/union-init2.c +++ b/clang/test/CodeGen/union-init2.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -emit-llvm %s -o - -triple i686-pc-linux-gnu | grep "bitcast (%0\* @r to %union.x\*), \[4 x i8\] zeroinitializer" +// RUN: clang-cc -emit-llvm %s -o - -triple i686-pc-linux-gnu | grep "bitcast (%0\* @r to %union.x\*), \[4 x i8\] undef" // Make sure we generate something sane instead of a ptrtoint union x {long long b;union x* a;} r = {.a = &r}; |