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

llvm-svn: 72578
This commit is contained in:
Mike Stump 2009-05-29 17:06:45 +00:00
parent 0b0ddb21fe
commit 7f12d51a48
1 changed files with 2 additions and 0 deletions

View File

@ -487,6 +487,8 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty)
}
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 {