Rearrange EmitLValueForField a bit to work properly for _Bool bitfields 
in unions (we don't want to do the union-specific bitcast for 
bit-fields).



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51678 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/union.c b/test/CodeGen/union.c
index 1e4346d..616cf56 100644
--- a/test/CodeGen/union.c
+++ b/test/CodeGen/union.c
@@ -36,3 +36,6 @@
 } q;
 int qfunc() {q buf; unsigned char* x = buf.x;}
 
+union RR {_Bool a : 1;} RRU;
+int RRF(void) {return RRU.a;}
+