fix PR3048.  I'm going to do some more work before closing it off and
adding a testcase.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59156 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index aaceb4f..3484849 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -2536,6 +2536,7 @@
     } else {
       // FIXME: This diagnostic needs work
       Diag(Loc, diag::err_typecheck_illegal_vla, Loc);
+      T = Context.IntTy;
       InvalidDecl = true;
     }
   }