Fix codegen for conditionals with incommpatible pointer types. Code
that causes this isn't really correct, but if we're going to accept
this, it should come up with a consistent AST.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46557 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/conditional.c b/test/CodeGen/conditional.c
index 15359e0..24a5aca 100644
--- a/test/CodeGen/conditional.c
+++ b/test/CodeGen/conditional.c
@@ -15,3 +15,7 @@
1 ? f() : (void)0;
}
+void test4() {
+int i; short j;
+float* k = 1 ? &i : &j;
+}