diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-11-01 02:23:42 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-11-01 02:23:42 +0000 |
commit | fcec630a57b6c6d30d6d0d6c0ed95c21fe96a5bd (patch) | |
tree | 31dcc35909782f2d6ab9fb0d02454fe351560775 /clang/test/CodeGen/global-init.c | |
parent | 703e7153af87981472770a793cb25d4893d381ec (diff) | |
download | bcm5719-llvm-fcec630a57b6c6d30d6d0d6c0ed95c21fe96a5bd.tar.gz bcm5719-llvm-fcec630a57b6c6d30d6d0d6c0ed95c21fe96a5bd.zip |
Fix the representation of wide strings in the AST and IR so that it uses the native representation of integers for the elements. This fixes a bunch of nastiness involving
treating wide strings as a series of bytes.
Patch by Seth Cantrell.
llvm-svn: 143417
Diffstat (limited to 'clang/test/CodeGen/global-init.c')
-rw-r--r-- | clang/test/CodeGen/global-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/global-init.c b/clang/test/CodeGen/global-init.c index 074c2a065a8..dab5a07d614 100644 --- a/clang/test/CodeGen/global-init.c +++ b/clang/test/CodeGen/global-init.c @@ -32,7 +32,7 @@ struct ManyFields FewInits = {1, 2}; // PR6766 -// CHECK: @l = global { [24 x i8], i32 } { [24 x i8] c"f\00\00\00o\00\00\00o\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", i32 1 } +// CHECK: @l = global %struct.K { [6 x i32] [i32 102, i32 111, i32 111, i32 0, i32 0, i32 0], i32 1 } typedef __WCHAR_TYPE__ wchar_t; struct K { wchar_t L[6]; |