From 8ebefded18aa3c83b6b4ce3713060c94432f9859 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 29 May 2009 17:06:45 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CodeGenFunction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 04661fca47..38a981ccff 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -487,6 +487,8 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty) } return SizeEntry; + } else if (const ConstantArrayType *CAT = dyn_cast(Ty)) { + EmitVLASize(CAT->getElementType()); } else if (const PointerType *PT = Ty->getAsPointerType()) EmitVLASize(PT->getPointeeType()); else { -- 2.40.0