Fixup codegen for composition of vla types using a normal array type.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72578 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 04661fc..38a981c 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -487,6 +487,8 @@
     }
     
     return SizeEntry;
+  } else if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(Ty)) {
+    EmitVLASize(CAT->getElementType());
   } else if (const PointerType *PT = Ty->getAsPointerType())
     EmitVLASize(PT->getPointeeType());
   else {