diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-17 17:46:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-17 17:46:19 +0000 |
commit | 10dae300498867a7ee5ff4be741eb0b869b31bdc (patch) | |
tree | 09e1b1e147b76dd98ae55f40fe87cd2a71d0bdf9 /clang/test/CodeGenObjC/ivars.m | |
parent | c4688d21f779dc1df12f6338f3745213c0779b91 (diff) | |
download | bcm5719-llvm-10dae300498867a7ee5ff4be741eb0b869b31bdc.tar.gz bcm5719-llvm-10dae300498867a7ee5ff4be741eb0b869b31bdc.zip |
Fix rdar://6800926 - crash compiling non-fragile _Bool bitfield ivar,
the functional change here is changing ConvertType -> ConvertTypeForMem
so that we handle i1 fields properly as memory.
llvm-svn: 69361
Diffstat (limited to 'clang/test/CodeGenObjC/ivars.m')
-rw-r--r-- | clang/test/CodeGenObjC/ivars.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/ivars.m b/clang/test/CodeGenObjC/ivars.m new file mode 100644 index 00000000000..327b628532e --- /dev/null +++ b/clang/test/CodeGenObjC/ivars.m @@ -0,0 +1,14 @@ +// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -o - %s && +// RUN: clang-cc -triple i386-apple-darwin9 -emit-llvm -o - %s + +// rdar://6800926 +@interface ITF { +@public + unsigned field :1 ; + _Bool boolfield :1 ; +} +@end + +void foo(ITF *P) { + P->boolfield = 1; +} |