Handle the case where EmitBlock might be called multiple times for the same block. Fixes PR3536.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64252 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/vla.c b/test/CodeGen/vla.c
index 2197ee1..beb928b 100644
--- a/test/CodeGen/vla.c
+++ b/test/CodeGen/vla.c
@@ -18,3 +18,14 @@
   int vla[x];
   return vla[x-1];
 }
+
+void
+f(int count)
+{
+ int a[count];
+
+  do {  } while (0);
+
+  if (a[0] != 3) {
+  }
+}