PR4143: don't crash generating debug info for incomplete enum types.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70825 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/debug-info.c b/test/CodeGen/debug-info.c
index 0cb01a3..e0ec2c9 100644
--- a/test/CodeGen/debug-info.c
+++ b/test/CodeGen/debug-info.c
@@ -28,3 +28,10 @@
 	void *ptrs[];
 };
 struct foo bar;
+
+// PR4143
+struct foo2 {
+        enum bar *bar;
+};
+
+struct foo2 foo2;